Skip to content

Build and push

Build and push #26

Workflow file for this run

name: "Build and push"
on:
workflow_run:
workflows: ["Run tests"]
branches: [main]
types:
- completed
jobs:
build:
name: Docker build and push
if: >
${{ !github.event.deleted &&
github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
builder: ${{ steps.buildx.outputs.name }}
tags: |
ghcr.io/reload/combine:latest
push: true