Merge pull request #835 from emmetaobrien/master #169
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: Docker build and push. | |
on: | |
push: | |
paths: | |
- "projects/**" | |
- "tests/**" | |
branches: | |
- master | |
jobs: | |
build_push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/[email protected] | |
with: | |
push: true | |
tags: ${{ secrets.DOCKERHUB_REPOSITORY }} | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |