Skip to content

Merge pull request #69 from reload/feature/build-simpler #1

Merge pull request #69 from reload/feature/build-simpler

Merge pull request #69 from reload/feature/build-simpler #1

Workflow file for this run

name: "Build and push"
on:
push:
branches: [main]
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/login-action@v3.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v5.4.0
with:
builder: ${{ steps.buildx.outputs.name }}
push: true
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=${{ github.sha }}
org.opencontainers.image.revision=${{ github.sha }}
tags: |
ghcr.io/${{ github.repository }}:latest