Compare commits

...

3 commits

Author SHA1 Message Date
Chris Kruining
2987c48db8
hardcode path to authfile????
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 2m41s
2025-09-08 15:38:29 +02:00
Chris Kruining
6c12b22026
add some logging to the prepare step 2025-09-08 15:36:27 +02:00
Chris Kruining
0dc45b8b56
add name to checkout step 2025-09-08 15:34:58 +02:00

View file

@ -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 <<EOF
{
"auths": {
@ -38,12 +41,10 @@ jobs:
}
}
EOF
echo "Created auth file"
- uses: actions/checkout@v4
# - name: Log into registry
# run: |
# echo "${{ secrets.PACKAGE_TOKEN }}" | podman login --username "${{ forge.actor }}" --password-stdin ${{ env.registry }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Create image
run: |
@ -51,5 +52,8 @@ jobs:
podman load < result
- name: Push image
run: |
podman push --authfile=~/.config/containers/auth.json localhost/${{ env.image }}:${{ env.tag }} ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}
run: >-
podman push
--authfile=/root/.config/containers/auth.json
localhost/${{ env.image }}:${{ env.tag }}
${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}