Skip to content

Publish Docker image #85

Publish Docker image

Publish Docker image #85

Workflow file for this run

name: Publish Docker image
on:
workflow_run:
workflows: [Build Docker image]
types:
- completed
branches: [develop, main, master]
jobs:
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'Build and/or test failed, not deploying'
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Publish to docker.io
runs-on: ubuntu-latest
steps:
- name: Docker Login
# You may pin to the exact commit or the version.
uses: docker/login-action@v3
with:
# Server address of Docker registry. If not set then will default to Docker Hub
# registry: # optional
# Username used to log against the Docker registry
username: ${{ secrets.DOCKER_USERNAME }} # optional
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_PASSWORD }}
# Log out from the Docker registry at the end of a job
# logout: # optional, default is true
- name: Push Docker image
# You may pin to the exact commit or the version.
uses: docker/[email protected]
with:
push: true
tags: atreyu/michaelchecksum:latest