add credentials, but then why do I need to log in????
Some checks failed
Test action / Print hello world (push) Failing after 12s
Some checks failed
Test action / Print hello world (push) Failing after 12s
This commit is contained in:
parent
9c048aca05
commit
e4843997ea
1 changed files with 12 additions and 5 deletions
|
@ -30,11 +30,18 @@ jobs:
|
||||||
mkdir -p ~/.config/containers
|
mkdir -p ~/.config/containers
|
||||||
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
||||||
|
|
||||||
- name: Build image
|
- name: Log into registry
|
||||||
run: nix-build modules/nixos/services/development/forgejo/runners/default.nix
|
|
||||||
|
|
||||||
- name: Push image
|
|
||||||
run: |
|
run: |
|
||||||
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
|
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
|
||||||
|
|
||||||
|
- name: Create image
|
||||||
|
run: |
|
||||||
|
nix-build modules/nixos/services/development/forgejo/runners/default.nix
|
||||||
podman load < result
|
podman load < result
|
||||||
podman push localhost/default:latest ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
|
||||||
|
- name: Push image
|
||||||
|
run: >-
|
||||||
|
podman push
|
||||||
|
--creds="${{ forge.actor }}:${{ forge.token }}"
|
||||||
|
localhost/default:latest
|
||||||
|
${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
Loading…
Add table
Add a link
Reference in a new issue