Skip to content

Commit

Permalink
fix: use correct image ref to run container
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion committed May 18, 2024
1 parent 4fcc169 commit bdfce7d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
# Declare default permissions as read only.
permissions: read-all

env:
REPO: ghcr.io/coreruleset/albedo

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -95,14 +98,17 @@ jobs:
files: |
./docker-bake.hcl
targets: default
load: true
push: false
provenance: true
sbom: true

- name: Run container
run: |
echo "Starting container"
docker run --pull "never" -d --name albedo-test "${REPO}:0"
docker images
image_ref="$(docker images --filter "reference=${REPO}:*" --format '{{.Repository}}:{{.Tag}}' | head -1)"
echo "Starting container ${image_ref}"
docker run --pull "never" -d --name albedo-test "${image_ref}"
docker logs albedo-test
- name: Verify container
Expand Down

0 comments on commit bdfce7d

Please sign in to comment.