Skip to content

Commit

Permalink
Add latest and staging tag for docker image (#20)
Browse files Browse the repository at this point in the history
* Update ci

* latest and staging tag
  • Loading branch information
fewensa authored Jun 7, 2024
1 parent bd78ca7 commit 34f254a
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,43 +33,36 @@ jobs:
with:
push: true
context: ponder
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:sha-${{ env.SHA }}
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:sha-${{ env.SHA }}
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:staging
- name: Build ponder with tag
uses: docker/build-push-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
push: true
context: ponder
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:${{ env.GIT_TAG_NAME }}

- name: Build scanner with sha
uses: docker/build-push-action@v3
with:
push: true
context: scanner
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/scanner:sha-${{ env.SHA }}

- name: Build scanner with tag
uses: docker/build-push-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
push: true
context: scanner
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/scanner:${{ env.GIT_TAG_NAME }}
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:${{ env.GIT_TAG_NAME }}
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:latest
- name: Build server with sha
uses: docker/build-push-action@v3
with:
push: true
context: server
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/server:sha-${{ env.SHA }}
context: api
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/server:sha-${{ env.SHA }
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/server:staging
- name: Build server with tag
uses: docker/build-push-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
push: true
context: server
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/server:${{ env.GIT_TAG_NAME }}
context: api
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/server:${{ env.GIT_TAG_NAME }
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/server:latest

0 comments on commit 34f254a

Please sign in to comment.