Skip to content

Commit

Permalink
fix the issue of building debug image (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuodenumL authored Mar 9, 2022
1 parent f1d9aa2 commit 1b765fa
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,22 @@ jobs:
uses: docker/metadata-action@v3
with:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
${{ github.repository }}
tags: |
type=ref,event=tag
- name: Docker meta for debug version
if: ${{ github.ref == 'refs/heads/master' }}
id: debug-meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/${{ github.repository }}
${{ github.repository }}
tags: |
type=sha,format=long,prefix=
- name: Build and push image
if: ${{ steps.meta.outputs.tags != '' }}
uses: docker/build-push-action@v2
Expand All @@ -48,12 +59,11 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}

- name: "[debug version] Build and push image"
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
context: "."
push: true
build_args: |
build-args: |
KEEP_SYMBOL=1
tags: |
${{ github.repository }}:${{ github.sha }}-debug
ghcr.io/${{ github.repository }}:${{ github.sha }}-debug
tags: ${{ steps.debug-meta.outputs.tags }}

0 comments on commit 1b765fa

Please sign in to comment.