1
0
Fork 0
mirror of synced 2024-06-02 10:34:40 +12:00

Fixing staging build so it only occurs on develop, master doesn't need it.

This commit is contained in:
mike12345567 2021-06-07 18:04:16 +01:00
parent cb0317ca71
commit 4e97eea3c0
2 changed files with 3 additions and 2 deletions

View file

@ -45,9 +45,10 @@ jobs:
- name: Build and Push Staging Docker Image
# Only run on push
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
yarn build
yarn build:docker:staging
env:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}

View file

@ -3,7 +3,7 @@
tag=$1
tag=${tag:-latest}
echo "Tagging images with SHA: $GITHUB_SHA and version: $BUDIBASE_VERSION"
echo "Tagging images with SHA: $GITHUB_SHA and tag: $tag"
docker tag app-service budibase/apps:$tag
docker tag worker-service budibase/worker:$tag