Skip to content

Publish Docker image #154

Publish Docker image

Publish Docker image #154

Workflow file for this run

name: Publish Docker image
on:
workflow_run:
workflows: ["Tests"]
types:
- completed
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: tecokit/explorer-frontend
tag_with_ref: true
on_failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Try to fail
run: exit 1