diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c42fd4..b8bf076 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: CI on: push: branches: [master] + tags: ['**'] pull_request: permissions: @@ -11,6 +12,6 @@ permissions: packages: write jobs: ci: - uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.1.0 + uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.2.0 with: - forge_version: 0.2.0 \ No newline at end of file + forge_version: 0.3.0 \ No newline at end of file diff --git a/examples/go/Earthfile b/examples/go/Earthfile index b27859e..b520deb 100644 --- a/examples/go/Earthfile +++ b/examples/go/Earthfile @@ -43,7 +43,7 @@ test: RUN go test ./... -release: +github: FROM scratch ARG version="v0.0.0" @@ -61,7 +61,7 @@ release: SAVE ARTIFACT bin/hello hello -publish: +docker: FROM debian:bookworm-slim WORKDIR /workspace diff --git a/examples/go/blueprint.cue b/examples/go/blueprint.cue index 8a9ac1e..bc33cfc 100644 --- a/examples/go/blueprint.cue +++ b/examples/go/blueprint.cue @@ -23,4 +23,21 @@ project: { ] } } + release: { + docker: { + on: { + merge: {} + tag: {} + } + } + github: { + on: tag: {} + config: { + token: { + provider: "env" + path: "GITHUB_TOKEN" + } + } + } + } } diff --git a/examples/rust/Earthfile b/examples/rust/Earthfile index 4b750ac..e87840e 100644 --- a/examples/rust/Earthfile +++ b/examples/rust/Earthfile @@ -32,7 +32,7 @@ build: SAVE ARTIFACT ./target/${TARGET}/release/hello hello -release: +github: FROM scratch ARG TARGETOS @@ -47,7 +47,7 @@ release: SAVE ARTIFACT bin/hello hello -publish: +docker: FROM debian:bookworm-slim WORKDIR /workspace diff --git a/examples/rust/blueprint.cue b/examples/rust/blueprint.cue index 2f67161..01706e0 100644 --- a/examples/rust/blueprint.cue +++ b/examples/rust/blueprint.cue @@ -20,4 +20,21 @@ project: { privileged: true } } + release: { + docker: { + on: { + merge: {} + tag: {} + } + } + github: { + on: tag: {} + config: { + token: { + provider: "env" + path: "GITHUB_TOKEN" + } + } + } + } } diff --git a/users/jmgilman/Earthfile b/users/jmgilman/Earthfile index 031296b..81e4568 100644 --- a/users/jmgilman/Earthfile +++ b/users/jmgilman/Earthfile @@ -45,7 +45,7 @@ test: RUN uv sync --frozen --extra dev RUN uv run pytest . -publish: +docker: FROM python:3.12-slim ARG container=hello @@ -60,7 +60,7 @@ publish: ENTRYPOINT ["hello"] SAVE IMAGE ${container}:${tag} -release: +github: FROM scratch COPY +build/dist dist diff --git a/users/jmgilman/blueprint.cue b/users/jmgilman/blueprint.cue index d9809b7..c2e74b9 100644 --- a/users/jmgilman/blueprint.cue +++ b/users/jmgilman/blueprint.cue @@ -1,4 +1,21 @@ version: "1.0.0" project: { name: "hello" + release: { + docker: { + on: { + merge: {} + tag: {} + } + } + github: { + on: tag: {} + config: { + token: { + provider: "env" + path: "GITHUB_TOKEN" + } + } + } + } }