Skip to content

3.1.1

3.1.1 #9

Workflow file for this run

name: Docker Release
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
release:
types: [published]
jobs:
push_dockerhub:
name: Push new Docker image to Docker Hub (release)
runs-on: ubuntu-latest
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- name: Check out pipeline code
uses: actions/checkout@v3
- name: Build new docker image
run: docker build --no-cache . -t gregdenay/taxidtools:latest
- name: Push Docker image to DockerHub (release)
run: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push gregdenay/taxidtools:latest
docker tag gregdenay/taxidtools:latest gregdenay/taxidtools:${{ github.event.release.tag_name }}
docker push gregdenay/taxidtools:${{ github.event.release.tag_name }}