clean up pipeline
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 10s
Some checks failed
Create OCI image(s) / Build and push images (push) Failing after 10s
This commit is contained in:
parent
331d1df22b
commit
ede6f306c4
1 changed files with 9 additions and 30 deletions
|
|
@ -19,8 +19,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
# configure container policy to accept insecure registry
|
nix-env -iA nixpkgs.nodejs nixpkgs.podman nixpkgs.kvmtool
|
||||||
nix-env -iA nixpkgs.nodejs nixpkgs.podman nixpkgs.kvmtool nixpkgs.curl nixpkgs.jq
|
|
||||||
|
|
||||||
# configure container policy to accept insecure registry
|
# configure container policy to accept insecure registry
|
||||||
mkdir -p ~/.config/containers
|
mkdir -p ~/.config/containers
|
||||||
|
|
@ -28,35 +27,15 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: Log into registry
|
- name: Log into registry
|
||||||
# run: |
|
run: |
|
||||||
# set -x
|
podman login --username "${{ forge.actor }}" --password "${{ secrets.PACKAGE_TOKEN }}" ${{ env.registry }}
|
||||||
|
|
||||||
# podman login \
|
|
||||||
# --username "${{ forge.actor }}" \
|
|
||||||
# --password "${{ forge.token }}" \
|
|
||||||
# ${{ env.registry }}
|
|
||||||
|
|
||||||
# curl --fail -u ${{ forge.actor }}:${{ forge.token }} -sS ${{ forge.server_url }}/v2/token | jq --raw-output '"Authorization: token \(.token)"' > /tmp/forgejo_token
|
- name: Create image
|
||||||
|
run: |
|
||||||
# - name: Create image
|
nix-build src/${{ env.image }}.nix
|
||||||
# run: |
|
podman load < result
|
||||||
# nix-build src/default.nix
|
|
||||||
# podman load < result
|
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
set -x
|
podman push localhost/${{ env.image }}:${{ env.tag }} ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}
|
||||||
|
|
||||||
nix-build src/default.nix
|
|
||||||
podman load < result
|
|
||||||
|
|
||||||
podman login --username "chris" --password "68a42ed98be50c9ce3e9cc246a66a5d80ef49410" git.amarth.cloud
|
|
||||||
|
|
||||||
podman push localhost/default:latest git.amarth.cloud/amarth/runners/default:latest
|
|
||||||
|
|
||||||
# podman manifest rm localhost:${{ env.tag }} || true
|
|
||||||
# podman manifest create localhost:${{ env.tag }} localhost/default:${{ env.tag }}
|
|
||||||
|
|
||||||
# podman manifest inspect localhost:${{ env.tag }} > /tmp/manifest.json
|
|
||||||
# curl -sS @/tmp/forgejo_token -X PUT --data-binary @/tmp/manifest.json ${{ forge.server_url }}/v2/amarth/runners/manifests/${{ env.tag }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue