lets try another avenue...
Some checks failed
Test action / Print hello world (push) Failing after 13s
Some checks failed
Test action / Print hello world (push) Failing after 13s
This commit is contained in:
parent
33f9a7fbd8
commit
b8e43fedba
3 changed files with 23 additions and 28 deletions
|
@ -24,36 +24,28 @@ jobs:
|
|||
- name: Prepare podman
|
||||
run: |
|
||||
# configure container policy to accept insecure registry
|
||||
nix-env -iA nixpkgs.podman nixpkgs.kmod
|
||||
nix-env -iA nixpkgs.podman
|
||||
|
||||
# configure container policy to accept insecure registry
|
||||
mkdir -p ~/.config/containers
|
||||
echo '{ "default": [ {"type":"insecureAcceptAnything"} ] }' > ~/.config/containers/policy.json
|
||||
|
||||
# ensure all required directories exist with proper permissions
|
||||
mkdir -p /tmp/podman /var/tmp ~/.local/share/containers
|
||||
chmod 755 /tmp/podman /var/tmp || true
|
||||
|
||||
# set multiple environment variables for skopeo temporary directories
|
||||
export TMPDIR=/tmp/podman
|
||||
export TMP=/tmp/podman
|
||||
export TEMP=/tmp/podman
|
||||
export XDG_RUNTIME_DIR=/tmp/podman
|
||||
|
||||
modprobe fuse
|
||||
|
||||
- name: Log into registry
|
||||
run: |
|
||||
podman login --username "${{ forge.actor }}" --password "${{ forge.token }}" ${{ env.registry }}
|
||||
|
||||
- name: Build image
|
||||
run: >-
|
||||
podman build
|
||||
-t ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
-f Dockerfile.default
|
||||
modules/nixos/services/development/forgejo
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
run: nix-build modules/nixos/services/development/forgejo/runners/default.nix
|
||||
# run: >-
|
||||
# podman build
|
||||
# -t ${{ env.registry }}/${{ env.owner }}/${{ env.image }}:${{ env.tag }}
|
||||
# -f Dockerfile.default
|
||||
# modules/nixos/services/development/forgejo
|
||||
|
||||
- name: __DEBUG__
|
||||
run: |
|
||||
ls -al result
|
||||
podman load < result
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue