do everything 100% the same as on local
All checks were successful
Create OCI image(s) / Build and push images (push) Successful in 2m42s
All checks were successful
Create OCI image(s) / Build and push images (push) Successful in 2m42s
This commit is contained in:
parent
306b925678
commit
331d1df22b
1 changed files with 17 additions and 12 deletions
|
|
@ -28,26 +28,31 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log into registry
|
# - name: Log into registry
|
||||||
run: |
|
# run: |
|
||||||
set -x
|
# set -x
|
||||||
|
|
||||||
podman login \
|
# podman login \
|
||||||
--username "${{ forge.actor }}" \
|
# --username "${{ forge.actor }}" \
|
||||||
--password "${{ forge.token }}" \
|
# --password "${{ forge.token }}" \
|
||||||
${{ env.registry }}
|
# ${{ 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
|
# - name: Create image
|
||||||
run: |
|
# run: |
|
||||||
nix-build src/default.nix
|
# nix-build src/default.nix
|
||||||
podman load < result
|
# podman load < result
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
set -x
|
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 push localhost/default:latest git.amarth.cloud/amarth/runners/default:latest
|
||||||
|
|
||||||
# podman manifest rm localhost:${{ env.tag }} || true
|
# podman manifest rm localhost:${{ env.tag }} || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue