Skip to content

Commit

Permalink
Add example build
Browse files Browse the repository at this point in the history
  • Loading branch information
n0str committed Sep 12, 2024
1 parent 096e4ba commit 29d953a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ jobs:
env:
BASE_IMAGE_NAME: ${{ github.repository }}
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}" >> $GITHUB_OUTPUT
else
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}-stage" >> $GITHUB_OUTPUT
fi
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}-demo" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand All @@ -54,4 +50,4 @@ jobs:
file: docker/Dockerfile.demo
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ startsWith(github.ref, 'refs/tags/v') || endsWith(github.ref, '/stage') }}
push: ${{ startsWith(github.ref, 'refs/tags/v') }}

0 comments on commit 29d953a

Please sign in to comment.