Update 2019-03-04-tutorial.md dataset link #52
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 | |
on: | |
push: | |
branches: | |
- 'master' | |
release: | |
types: [created] | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Branch name | |
id: branch_name | |
run: | | |
SOURCE_TAG=${GITHUB_REF#refs/tags/} # Get tag | |
if [ "$SOURCE_TAG" == "refs/heads/master" ] | |
then | |
SOURCE_TAG=latest # Set tag to 'latest' if not a release | |
fi | |
echo ::set-output name=SOURCE_TAG::$SOURCE_TAG | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
install: true | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: inmap/inmap:${{ steps.branch_name.outputs.SOURCE_TAG }} |