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