adding update so it is on push for buildx #9
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 Docker image upon release | |
on: | |
push: | |
branches: | |
- build | |
jobs: | |
push_to_registry: | |
name: Build and push Docker image upon release | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout repository | |
uses: actions/checkout@v2 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/[email protected] | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Build and Push to Docker Hub | |
uses: docker/build-push-action@v4 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
tag_with_ref: true | |
tag_with_sha: true | |
context: . | |
push: true | |
file: "./Dockerfile" | |
platforms: linux/amd64,linux/arm64 | |
tags: jhuaplbio/basestack_mytax2:${{ steps.package-version.outputs.current-version}} |