.
All checks were successful
Create OCI image(s) / Build and push images (push) Successful in 1m51s

This commit is contained in:
Chris Kruining 2025-09-08 12:50:18 +02:00
parent 22ba8a37dc
commit a3066be43e
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 31 additions and 9 deletions

View file

@ -0,0 +1,28 @@
#=======================================================================
# Metadata
#=======================================================================
name: Push OCI container
description: Push the `source` image to the `destination` registry
#=======================================================================
# Parameters
#=======================================================================
inputs:
source:
required: true
description: The source image to be pushed
destination:
required: true
description: where to push the image to
#=======================================================================
# Logic
#=======================================================================
runs:
using: composite
steps:
- name: Authenticate
run: |
echo "Authenticate"
echo "pushing image '${{ inputs.source }}' to '${{ inputs.destination }}'"

View file

View file

@ -36,16 +36,10 @@ jobs:
nix-build src/default.nix nix-build src/default.nix
podman load < result podman load < result
- uses: https://github.com/Frozen-Tapestry/container-action@v1 - uses: ./.forgejo/actions/push_container
with: with:
login_registry: ${{ env.registry }} source: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
login_username: ${{ env.actor }} destination: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
login_password: ${{ env.token }}
tags: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
# tags: localhost/${{ env.image }}:${{ env.tag }}
push: true
# - name: Log into registry # - name: Log into registry
# run: >- # run: >-