Skip to content

Commit

Permalink
chore/ci: Stubs variables for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
akxcv committed Dec 16, 2024
1 parent 7a1cf2f commit d3e298e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ inputs.tag }}
type=raw,value=${{ inputs.tag || 'test' }}
type=sha
- name: Build and push image
id: push
Expand All @@ -66,7 +66,7 @@ jobs:
DEMO_USER: ${{ secrets.DEMO_USER }}
DEMO_HOST: ${{ secrets.DEMO_HOST }}
DEMO_APP_DIR: ${{ secrets.DEMO_APP_DIR }}
if: ${{ inputs.tag }}
if: ${{ inputs.deploy_to_demo || true }}
needs: [build-image]
permissions:
contents: read
Expand All @@ -78,7 +78,7 @@ jobs:
run: >
ssh ${{ env.DEMO_USER }}@${{ env.DEMO_HOST }}
'cd ${{ env.DEMO_APP_DIR }} &&
echo "NEKKO_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" > .env &&
echo "NEKKO_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.tag || 'test' }}" > .env &&
sudo docker-compose pull &&
sudo docker-compose up --force-recreate -d'
- if: ${{ env.DEMO_USER == '' || env.DEMO_HOST == '' || env.DEMO_APP_DIR == '' }}
Expand Down

0 comments on commit d3e298e

Please sign in to comment.