Skip to content

Commit

Permalink
chore: updates CI to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 21, 2024
1 parent 045d466 commit 6a74b1e
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: CI
on:
push:
branches: [master]
tags: ['**']
pull_request:

permissions:
Expand All @@ -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
forge_version: 0.3.0
4 changes: 2 additions & 2 deletions examples/go/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test:

RUN go test ./...

release:
github:
FROM scratch

ARG version="v0.0.0"
Expand All @@ -61,7 +61,7 @@ release:

SAVE ARTIFACT bin/hello hello

publish:
docker:
FROM debian:bookworm-slim
WORKDIR /workspace

Expand Down
17 changes: 17 additions & 0 deletions examples/go/blueprint.cue
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,21 @@ project: {
]
}
}
release: {
docker: {
on: {
merge: {}
tag: {}
}
}
github: {
on: tag: {}
config: {
token: {
provider: "env"
path: "GITHUB_TOKEN"
}
}
}
}
}
4 changes: 2 additions & 2 deletions examples/rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ build:

SAVE ARTIFACT ./target/${TARGET}/release/hello hello

release:
github:
FROM scratch

ARG TARGETOS
Expand All @@ -47,7 +47,7 @@ release:

SAVE ARTIFACT bin/hello hello

publish:
docker:
FROM debian:bookworm-slim
WORKDIR /workspace

Expand Down
17 changes: 17 additions & 0 deletions examples/rust/blueprint.cue
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,21 @@ project: {
privileged: true
}
}
release: {
docker: {
on: {
merge: {}
tag: {}
}
}
github: {
on: tag: {}
config: {
token: {
provider: "env"
path: "GITHUB_TOKEN"
}
}
}
}
}
4 changes: 2 additions & 2 deletions users/jmgilman/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -60,7 +60,7 @@ publish:
ENTRYPOINT ["hello"]
SAVE IMAGE ${container}:${tag}

release:
github:
FROM scratch

COPY +build/dist dist
Expand Down
17 changes: 17 additions & 0 deletions users/jmgilman/blueprint.cue
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}

0 comments on commit 6a74b1e

Please sign in to comment.