name: Test action on: workflow_dispatch: push: branches: - main env: registry: git.amarth.cloud owner: chris image: default tag: latest jobs: hello: name: Print hello world runs-on: default steps: - name: Pull dependencies run: | git clone https://${{ env.registry }}/${{ env.owner }}/sneeuwvlok.git . - name: Prepare podman run: | # configure container policy to accept insecure registry nix-env -iA nixpkgs.podman nixpkgs.kvmtool # configure container policy to accept insecure registry mkdir -p ~/.config/containers echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json # Create authentication file for podman mkdir -p ~/.docker cat > ~/.docker/config.json <- podman push --authfile=${XDG_RUNTIME_DIR}/containers/auth.json --creds="${{ forge.actor }}:${{ forge.token }}" localhost/default:latest ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}