Generate Taxonworks base Docker image #220
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: Generate Taxonworks base Docker image | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 22 * * 6' | |
jobs: | |
base-image: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build -f Dockerfile.base . -t sfgrp/taxonworks-base | |
- name: Login to DockerHub | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push image to DockerHub | |
run: docker push sfgrp/taxonworks-base:latest |