Merge pull request #202 from kobotoolbox/match-dockerfile-to-tags #13
Workflow file for this run
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: Build and push *base* image to Docker Hub | |
on: | |
push: | |
# Don't waste time building every push: consider only tags, which are | |
# usually releases | |
tags: | |
- '*' | |
jobs: | |
docker-base-image-build-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
with: | |
image: kobotoolbox/reports_base | |
# Use the Git tag for the Docker image tag (done automatically), and | |
# additionally tag the new image as `latest` | |
addLatest: true | |
registry: docker.io | |
dockerfile: Dockerfile.base | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} |