Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Sep 27, 2024
1 parent 6e39506 commit 4579bd4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@ jobs:
- name: Build image
run: |
VERSION_TAG=$(grep -Po -m1 '\d.\d.\d' Cargo.toml)
echo "${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA::6}"
echo "${REGISTRY}/${IMAGE_NAME}:${VERSION_TAG}"
docker build -f test.Dockerfile .\
-t "${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA::6}"\
-t "${REGISTRY}/${IMAGE_NAME}:${VERSION_TAG}"\
-t "${REGISTRY}/${IMAGE_NAME}:test-${GITHUB_SHA::6}"\
-t "${REGISTRY}/${IMAGE_NAME}:test-${VERSION_TAG}"\
-t "${REGISTRY}/${IMAGE_NAME}:latest"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish image
run: |
docker image push --all-tags "${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA::6}"
docker image push --all-tags "${REGISTRY}/${IMAGE_NAME}:latest"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4579bd4

Please sign in to comment.