AND ANOTHER ATTEMPT
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 12s
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 12s
This commit is contained in:
parent
6f92846714
commit
b28d88afe3
1 changed files with 15 additions and 12 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue