Fixing staging build so it only occurs on develop, master doesn't need it.
This commit is contained in:
parent
482dd8f63f
commit
2a6da34404
|
@ -45,9 +45,10 @@ jobs:
|
||||||
|
|
||||||
- name: Build and Push Staging Docker Image
|
- name: Build and Push Staging Docker Image
|
||||||
# Only run on push
|
# 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: |
|
run: |
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
||||||
|
yarn build
|
||||||
yarn build:docker:staging
|
yarn build:docker:staging
|
||||||
env:
|
env:
|
||||||
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
tag=$1
|
tag=$1
|
||||||
tag=${tag:-latest}
|
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 app-service budibase/apps:$tag
|
||||||
docker tag worker-service budibase/worker:$tag
|
docker tag worker-service budibase/worker:$tag
|
||||||
|
|
Loading…
Reference in New Issue