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"
|
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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue