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