Skip to content

Fix non-existent image in workflow (again) #36

Fix non-existent image in workflow (again)

Fix non-existent image in workflow (again) #36

Workflow file for this run

name: Deploy Images to GHCR
on:
push:
branches:
- main
workflow_dispatch:
jobs:
push-store-image:
runs-on: ubuntu-latest
environment: production
defaults:
run:
working-directory: '.'
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/heads/main}" >> $GITHUB_ENV
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/[email protected]
with:
context: ./
file: Caddy.Dockerfile
platforms: linux/arm64,linux/amd64,linux/arm/v7,linux/s390x,linux/386
push: true
cache-from: type=gha .
build-args: BUILDKIT_MULTIPLATFORM=1,ALPINE_VERSION=${{env.ALPINE_VERSION}},CADDY_VERSION=${{env.CADDY_VERSION}},BUILD_VERSION=${{env.BUILD_VERSION}}
tags: |
ghcr.io/rubberverse/qor-caddy:build-${{env.BUILD_VERSION}}-commit-${{env.RELEASE_VERSION}}
ghcr.io/rubberverse/qor-caddy:latest