another attempt
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 1m16s
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 1m16s
This commit is contained in:
parent
9148cf507e
commit
0167a6389a
2 changed files with 16 additions and 6 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue