diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 7cf9a08..01d8cf9 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -24,11 +24,14 @@ jobs: # cheatsheet: https://nexveridian.com/blog/forgejo-pushing-container-images/ - name: Prepare environment run: | - # configure container policy to accept insecure registry mkdir -p ~/.config/containers + # configure container policy to accept insecure registry + echo "Creating config file..." echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json + echo "Created config file" # configure authentication + echo "Creating auth file..." cat > ~/.config/containers/auth.json <- + podman push + --authfile=/root/.config/containers/auth.json + localhost/${{ env.image }}:${{ env.tag }} + ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}