This commit is contained in:
parent
22ba8a37dc
commit
a3066be43e
3 changed files with 31 additions and 9 deletions
28
.forgejo/actions/push_container/action.yml
Normal file
28
.forgejo/actions/push_container/action.yml
Normal 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 }}'"
|
||||
0
.forgejo/actions/push_container/push.sh
Normal file
0
.forgejo/actions/push_container/push.sh
Normal file
|
|
@ -36,16 +36,10 @@ jobs:
|
|||
nix-build src/default.nix
|
||||
podman load < result
|
||||
|
||||
- uses: https://github.com/Frozen-Tapestry/container-action@v1
|
||||
- uses: ./.forgejo/actions/push_container
|
||||
with:
|
||||
login_registry: ${{ env.registry }}
|
||||
login_username: ${{ env.actor }}
|
||||
login_password: ${{ env.token }}
|
||||
|
||||
tags: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
# tags: localhost/${{ env.image }}:${{ env.tag }}
|
||||
|
||||
push: true
|
||||
source: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
destination: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
|
||||
# - name: Log into registry
|
||||
# run: >-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue