From 29d953ac8daafad94100d8726e85c66ea731fa13 Mon Sep 17 00:00:00 2001 From: n0str Date: Thu, 12 Sep 2024 14:18:35 +0300 Subject: [PATCH] Add example build --- .github/workflows/build-demo.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-demo.yml b/.github/workflows/build-demo.yml index 732be2d..5944205 100644 --- a/.github/workflows/build-demo.yml +++ b/.github/workflows/build-demo.yml @@ -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 @@ -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') }} \ No newline at end of file + push: ${{ startsWith(github.ref, 'refs/tags/v') }} \ No newline at end of file