ci: ability to skip e2e workflow [skip e2e]
This commit is contained in:
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -52,17 +52,20 @@ jobs:
|
|||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Publish SNJS Docker image for E2E testing
|
- name: Publish SNJS Docker image for E2E testing
|
||||||
|
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||||
run: |
|
run: |
|
||||||
yarn docker build @standardnotes/snjs -t standardnotes/snjs:${{ github.sha }}
|
yarn docker build @standardnotes/snjs -t standardnotes/snjs:${{ github.sha }}
|
||||||
docker push standardnotes/snjs:${{ github.sha }}
|
docker push standardnotes/snjs:${{ github.sha }}
|
||||||
|
|
||||||
- name: Run E2E test suite
|
- name: Run E2E test suite
|
||||||
|
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||||
uses: convictional/trigger-workflow-and-wait@v1.6.1
|
uses: convictional/trigger-workflow-and-wait@v1.6.1
|
||||||
with:
|
with:
|
||||||
owner: standardnotes
|
owner: standardnotes
|
||||||
@@ -84,6 +87,7 @@ jobs:
|
|||||||
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Publish SNJS Docker image as stable
|
- name: Publish SNJS Docker image as stable
|
||||||
|
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
|
||||||
run: |
|
run: |
|
||||||
docker tag standardnotes/snjs:${{ github.sha }} standardnotes/snjs:latest
|
docker tag standardnotes/snjs:${{ github.sha }} standardnotes/snjs:latest
|
||||||
docker push standardnotes/snjs:latest
|
docker push standardnotes/snjs:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user