Skip to content

Commit 29d953a

Browse files
committed
Add example build
1 parent 096e4ba commit 29d953a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build-demo.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ jobs:
2323
env:
2424
BASE_IMAGE_NAME: ${{ github.repository }}
2525
run: |
26-
if [[ $GITHUB_REF == refs/tags/* ]]; then
27-
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}" >> $GITHUB_OUTPUT
28-
else
29-
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}-stage" >> $GITHUB_OUTPUT
30-
fi
26+
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}-demo" >> $GITHUB_OUTPUT
3127
3228
- name: Login to GitHub Container Registry
3329
uses: docker/login-action@v2
@@ -54,4 +50,4 @@ jobs:
5450
file: docker/Dockerfile.demo
5551
tags: ${{ steps.meta.outputs.tags }}
5652
labels: ${{ steps.meta.outputs.labels }}
57-
push: ${{ startsWith(github.ref, 'refs/tags/v') || endsWith(github.ref, '/stage') }}
53+
push: ${{ startsWith(github.ref, 'refs/tags/v') }}

0 commit comments

Comments
 (0)