AND ANOTHER ATTEMPT
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 12s

This commit is contained in:
Chris Kruining 2025-09-08 15:52:57 +02:00
parent 6f92846714
commit b28d88afe3
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -31,21 +31,25 @@ jobs:
echo "Created config file" echo "Created config file"
# configure authentication # configure authentication
echo "Creating auth file..." # echo "Creating auth file..."
cat > ~/.config/containers/auth.json <<EOF # cat > ~/.config/containers/auth.json <<EOF
{ # {
"auths": { # "auths": {
"${{ env.registry }}": { # "${{ env.registry }}": {
"auth": "$(echo -n "${{ forge.actor }}:${{ secrets.PACKAGE_TOKEN }}" | base64 -w 0)" # "auth": "$(echo -n "${{ forge.actor }}:${{ secrets.PACKAGE_TOKEN }}" | base64 -w 0)"
} # }
} # }
} # }
EOF # EOF
echo "Created auth file" # echo "Created auth file"
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Authenticate
run: |
podman login --username '${{ forge.actor }}' --password '${{ secrets.PACKAGE_TOKEN }}'
- name: Create image - name: Create image
run: | run: |
nix-build src/${{ env.image }}.nix nix-build src/${{ env.image }}.nix
@ -54,6 +58,5 @@ jobs:
- name: Push image - name: Push image
run: >- run: >-
podman push podman push
--authfile ~/.config/containers/auth.json
localhost/${{ env.image }}:${{ env.tag }} localhost/${{ env.image }}:${{ env.tag }}
${{ env.registry }}/${{ forge.repository }}/${{ env.image }}:${{ env.tag }} ${{ env.registry }}/${{ forge.repository }}/${{ env.image }}:${{ env.tag }}