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:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
# configure container policy to accept insecure registry
|
||||
nix-env -iA nixpkgs.nodejs nixpkgs.podman nixpkgs.kvmtool nixpkgs.curl nixpkgs.jq
|
||||
nix-env -iA nixpkgs.nodejs nixpkgs.podman nixpkgs.kvmtool
|
||||
|
||||
# configure container policy to accept insecure registry
|
||||
mkdir -p ~/.config/containers
|
||||
|
|
@ -28,35 +27,15 @@ jobs:
|
|||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# - name: Log into registry
|
||||
# run: |
|
||||
# set -x
|
||||
|
||||
# podman login \
|
||||
# --username "${{ forge.actor }}" \
|
||||
# --password "${{ forge.token }}" \
|
||||
# ${{ env.registry }}
|
||||
- name: Log into registry
|
||||
run: |
|
||||
podman login --username "${{ forge.actor }}" --password "${{ secrets.PACKAGE_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: |
|
||||
# nix-build src/default.nix
|
||||
# podman load < result
|
||||
- name: Create image
|
||||
run: |
|
||||
nix-build src/${{ env.image }}.nix
|
||||
podman load < result
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
set -x
|
||||
|
||||
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 }}
|
||||
podman push localhost/${{ env.image }}:${{ env.tag }} ${{ env.registry }}/${{ forge.repo }}/${{ env.image }}:${{ env.tag }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue