Skip to content

Commit

Permalink
fix/github actions tags
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
  • Loading branch information
nmarcetic committed Mar 28, 2024
1 parent 50e3890 commit 160b714
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,7 @@ jobs:
- name: Build image and push
run: |
cd peggo/
TAG=$(echo ${GITHUB_REF#refs/heads/} | cut -d '/' -f 2)
TAG=${{ github.ref_name }}
echo $TAG
[[ $ECR_ENABLED == "false" ]] || docker buildx build --tag $ECR_REPO:$TAG --platform linux/amd64,linux/arm64 --push .
[[ $GHCR_ENABLED == "false" ]] || docker buildx build --tag $GHCR_REPO:$TAG --platform linux/amd64,linux/arm64 --push .
- name: NONROOT Build image and push
run: |
cd peggo/
TAG=$(echo ${GITHUB_REF#refs/heads/} | cut -d '/' -f 2)-nonroot
echo $TAG
[[ $ECR_ENABLED == "false" ]] || docker buildx build -f Dockerfile.nonroot --tag $ECR_REPO:$TAG --platform linux/amd64,linux/arm64 --push .
[[ $GHCR_ENABLED == "false" ]] || docker buildx build -f Dockerfile.nonroot --tag $GHCR_REPO:$TAG --platform linux/amd64,linux/arm64 --push .

0 comments on commit 160b714

Please sign in to comment.