Skip to content

fix pipeline

fix pipeline #2

Workflow file for this run

name: Build and push image
on:
workflow_dispatch: {}
push:
branches:
- "main"
permissions:
packages: write
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
#
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
# https://github.com/docker/login-action
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/docker/build-push-action
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "ghcr.io/${{ github.repository }}:${{ env.SHORT_SHA }}"