Build on push
This commit is contained in:
parent
76dfcf29ba
commit
ddd8ea7c0d
|
@ -1,7 +1,7 @@
|
||||||
name: Deploy Budibase Single Container Image to DockerHub
|
name: Deploy Budibase Single Container Image to DockerHub
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
push:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
@ -20,14 +20,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
root-reserve-mb: 35000
|
root-reserve-mb: 35000
|
||||||
swap-size-mb: 1024
|
swap-size-mb: 1024
|
||||||
remove-android: 'true'
|
remove-android: "true"
|
||||||
remove-dotnet: 'true'
|
remove-dotnet: "true"
|
||||||
- name: Fail if not a tag
|
# - name: Fail if not a tag
|
||||||
run: |
|
# run: |
|
||||||
if [[ $GITHUB_REF != refs/tags/* ]]; then
|
# if [[ $GITHUB_REF != refs/tags/* ]]; then
|
||||||
echo "Workflow Dispatch can only be run on tags"
|
# echo "Workflow Dispatch can only be run on tags"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -35,12 +35,12 @@ jobs:
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Fail if tag is not in master
|
# - name: Fail if tag is not in master
|
||||||
run: |
|
# run: |
|
||||||
if ! git merge-base --is-ancestor ${{ github.sha }} origin/master; then
|
# if ! git merge-base --is-ancestor ${{ github.sha }} origin/master; then
|
||||||
echo "Tag is not in master. This pipeline can only execute tags that are present on the master branch"
|
# echo "Tag is not in master. This pipeline can only execute tags that are present on the master branch"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
|
|
Loading…
Reference in New Issue