Skip to content

Commit

Permalink
Fix release ci (#170)
Browse files Browse the repository at this point in the history
* Fix docker image build

* Fix context
  • Loading branch information
fewensa authored May 13, 2024
1 parent d4d4208 commit 598cec6
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,40 @@ jobs:
- uses: olegtarasov/[email protected]
id: tag-name

- name: Build apollo
- name: Build apollo with sha
uses: docker/build-push-action@v3
with:
push: true
context: .
file: apollo/Dockerfile
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/apollo:sha-${{ steps.short-sha.outputs.sha }}
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/apollo:${{ steps.tag-name.outputs.tag }}
- name: Build ponder
- name: Build apollo with tag
uses: docker/build-push-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
push: true
context: .
file: ponder/lnv3/Dockerfile
file: apollo/Dockerfile
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/apollo:${{ steps.tag-name.outputs.tag }}
- name: Build ponder with sha
uses: docker/build-push-action@v3
with:
push: true
context: ponder/lnv3
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:sha-${{ steps.short-sha.outputs.sha }}
- name: Build ponder with tag
uses: docker/build-push-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
push: true
context: ponder/lnv3
tags: |
${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:${{ steps.tag-name.outputs.tag }}

0 comments on commit 598cec6

Please sign in to comment.