another attempt
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 1m16s

This commit is contained in:
Chris Kruining 2025-09-08 11:51:19 +02:00
parent 9148cf507e
commit 0167a6389a
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 16 additions and 6 deletions

View file

@ -31,6 +31,21 @@ 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: Create image
run: |
nix-build src/default.nix | podman load
- uses: https://github.com/Frozen-Tapestry/container-action@v1
with:
login_registry: ${{ env.registry }}
login_username: ${{ env.actor }}
login_password: ${{ env.token }}
tags: ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
# tags: localhost/${{ env.image }}:${{ env.tag }}
push: true
- name: Log into registry - name: Log into registry
run: >- run: >-
podman login podman login
@ -40,11 +55,6 @@ jobs:
--password "${{ forge.token }}" --password "${{ forge.token }}"
${{ env.registry }} ${{ env.registry }}
- name: Create image
run: |
nix-build src/default.nix
podman load < result
- name: __DEBUG__ - name: __DEBUG__
run: | run: |
echo "~/.config/containers/auth.json" echo "~/.config/containers/auth.json"

View file

@ -5,7 +5,7 @@
with pkgs; with pkgs;
dockerTools.buildImage { dockerTools.buildImage {
name = "default"; name = "git.amarth.cloud/default";
tag = "latest"; tag = "latest";
copyToRoot = buildEnv { copyToRoot = buildEnv {