Skip to content

Commit

Permalink
ci-cd: image tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliaxie committed Jul 26, 2023
1 parent 763a852 commit bf30322
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: polinetwork/${{ matrix.bots }}:${{ github.sha }}
images: |
polinetwork/${{ matrix.bots }}
tags: |
type=semver,pattern={{version}}
type=sha
- name: Build
uses: docker/build-push-action@v3
with:
push: ${{ github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main'}}
push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'}}
context: ${{ matrix.bots }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down

0 comments on commit bf30322

Please sign in to comment.