Skip to content

Build and Publish Docker Image #9

Build and Publish Docker Image

Build and Publish Docker Image #9

Workflow file for this run

name: Build and Publish Docker Image
on:
workflow_run:
workflows: ["Test"]
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: ./Containerfile
context: .
image_tag: latest