Compare commits

..

2 commits

Author SHA1 Message Date
Chris Kruining
d3e7de5f5a
asdf
Some checks failed
Test action / Print hello world (push) Failing after 1m54s
2025-09-04 15:57:29 +02:00
Chris Kruining
7ac547bd81
parameterize git clone 2025-09-04 15:55:58 +02:00

View file

@ -17,9 +17,9 @@ jobs:
name: Print hello world
runs-on: default
steps:
- name: Pull dependencies
- name: Checkout
run: |
git clone https://${{ env.registry }}/${{ env.owner }}/sneeuwvlok.git .
git clone ${{ forge.server_url }}/${{ forge.repository }}.git .
- name: Prepare podman
run: |
@ -30,18 +30,6 @@ jobs:
mkdir -p ~/.config/containers
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
# Create authentication file for podman
mkdir -p ~/.docker
cat > ~/.docker/config.json <<EOF
{
"auths": {
"${{ env.REGISTRY }}": {
"auth": "$(echo -n "${{ forge.actor }}:${{ forge.token }}" | base64 -w 0)"
}
}
}
EOF
- name: Log into registry
run: |
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
@ -51,18 +39,9 @@ jobs:
nix-build modules/nixos/services/development/forgejo/runners/default.nix
podman load < result
- name: __DEBUG__
run: |
echo "${XDG_RUNTIME_DIR}/containers/auth.json"
[ -r ${XDG_RUNTIME_DIR}/containers/auth.json ] && cat ${XDG_RUNTIME_DIR}/containers/auth.json
echo "~/.docker/config.json"
[ -r ~/.docker/config.json ] && cat ~/.docker/config.json
- name: Push image
run: >-
podman push
--authfile=~/.docker/config.json
--creds="${{ forge.actor }}:${{ forge.token }}"
localhost/default:latest
${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}