Merge branch 'master' into docker-github-action #11
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 & Deploy Docker Containers | |
on: | |
workflow_dispatch: | |
inputs: | |
force_push: | |
description: 'Force push?' | |
type: boolean | |
required: true | |
default: false | |
schedule: | |
- cron: '20 11 * * *' | |
push: | |
release: | |
types: [published] | |
jobs: | |
build-test-deploy-docker: | |
runs-on: ubuntu-latest | |
env: | |
registry: ghcr.io | |
name: Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build Container | |
run: | | |
tag=v0.6.1 | |
docker build -f container/Dockerfile -t hmritoolbox/hmri:v0.6.1 . | |
docker images | |
# - name: Log in to GitHub Container Registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: ghcr.io | |
# username: ${{secrets.RUN_HMRI_DOCKER}} | |
# password: ${{secrets.GITHUB_TOKEN }} | |
- name: Log in to Docker Container Registry | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUBUSERNAME }} | |
password: ${{ secrets.DOCKERTOKEN }} | |
- name: Deploy Container | |
run: | | |
docker image push hmritoolbox/hmri:v0.6.1 |