Skip to content

Commit

Permalink
dynamic tags docker
Browse files Browse the repository at this point in the history
  • Loading branch information
BhruguR committed Jun 16, 2024
1 parent 9b8fe64 commit 4585df8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
args: --severity-threshold=critical
args: --severity-threshold=critical
build_push_docker:
needs: [security]
name: build & push image
runs-on: ubuntu-latest
steps:
- name: Get tags for docker
uses: actions/checkout@master
- run: git_hash=$(git rev-parse --short "$GITHUB_SHA")
- run: git_branch=${GITHUB_REF#refs/heads/}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -70,4 +74,4 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: bhrugur1/banana-math:$GITHUB_REF-$GITHUB_SHA
tags: bhrugur1/banana-math:${git_branch}.${git_hash}

0 comments on commit 4585df8

Please sign in to comment.