Skip to content

Commit

Permalink
fix: added docker meta tag in the co for the tag #8
Browse files Browse the repository at this point in the history
  • Loading branch information
shivani446 committed Feb 12, 2024
1 parent 738a41e commit 78ff41f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ jobs:
uses: actions/checkout@v4
timeout-minutes: 5

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_ORGANIZATION }}/${{ vars.DOCKERHUB_IMAGE }}
tags: |
type=raw,value=${{ matrix.node-version }}-{{branch}}-{{sha}}-{{date 'X'}}
type=raw,value=${{ matrix.node-version }}-{{branch}}-latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
timeout-minutes: 5

- name: Create Tag
id: tag
run: echo "tag=${{ matrix.node-version }}-$(git rev-parse --short HEAD)-$(date +%s)" >> $GITHUB_OUTPUT
timeout-minutes: 5

- name: Login to Docker Hub
if: ${{ github.ref_name == 'main' }}
uses: docker/login-action@v3
Expand Down

0 comments on commit 78ff41f

Please sign in to comment.