Test qa workflow change to try to force image update #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-qa | |
on: | |
push: | |
branches: | |
- qa-one | |
- qa-two | |
env: | |
NODE_VERSION: 18.x | |
DOCKER_REPO: sheltertechsf/askdarcel-web | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker/setup-qemu-action@v1 | |
- uses: docker/setup-buildx-action@v1 | |
- uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- run: npm ci | |
- run: cp config.example.yml config.yml | |
- run: CONFIG_YAML=config.docker.yml npm run build | |
- run: touch version.json | |
- uses: docker/build-push-action@v2 | |
with: | |
push: true | |
context: . | |
tags: ${{ env.DOCKER_REPO }}:qa-one-latest | |
- run: echo ${{ steps.docker_build.outputs.digest }} |