do everything 100% the same as on local
All checks were successful
Create OCI image(s) / Build and push images (push) Successful in 2m42s

This commit is contained in:
Chris Kruining 2025-09-08 15:17:15 +02:00
parent 306b925678
commit 331d1df22b
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -28,26 +28,31 @@ jobs:
- uses: actions/checkout@v4
- name: Log into registry
run: |
set -x
# - name: Log into registry
# run: |
# set -x
podman login \
--username "${{ forge.actor }}" \
--password "${{ forge.token }}" \
${{ env.registry }}
# podman login \
# --username "${{ forge.actor }}" \
# --password "${{ forge.token }}" \
# ${{ env.registry }}
curl --fail -u ${{ forge.actor }}:${{ forge.token }} -sS ${{ forge.server_url }}/v2/token | jq --raw-output '"Authorization: token \(.token)"' > /tmp/forgejo_token
# curl --fail -u ${{ forge.actor }}:${{ forge.token }} -sS ${{ forge.server_url }}/v2/token | jq --raw-output '"Authorization: token \(.token)"' > /tmp/forgejo_token
- name: Create image
run: |
nix-build src/default.nix
podman load < result
# - name: Create image
# run: |
# nix-build src/default.nix
# podman load < result
- name: Push image
run: |
set -x
nix-build src/default.nix
podman load < result
podman login --username "chris" --password "68a42ed98be50c9ce3e9cc246a66a5d80ef49410" git.amarth.cloud
podman push localhost/default:latest git.amarth.cloud/amarth/runners/default:latest
# podman manifest rm localhost:${{ env.tag }} || true