Split workflow into three tasks
Remove logouts from container registry
This commit is contained in:
parent
dfadf32edc
commit
3bd9676ba0
1 changed files with 22 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
jobs:
|
jobs:
|
||||||
push:
|
blog-pim:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
||||||
|
@ -11,33 +11,43 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
|
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
|
||||||
/bin/attic use home
|
/bin/attic use home
|
||||||
- name: Build Pim's blog
|
- name: Build blog-pim
|
||||||
run: nix build --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
|
run: nix build --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim
|
||||||
- name: Push Pim's blog to Nix cache
|
- name: Push blog-pim to Nix cache
|
||||||
run: /bin/attic push home blog-pim
|
run: /bin/attic push home blog-pim
|
||||||
- name: Log into container registry
|
- name: Log into container registry
|
||||||
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
||||||
- name: Push Pim's blog to container registry
|
- name: Push blog-pim to container registry
|
||||||
run: /bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/forgejo-nix-action:latest
|
run: /bin/skopeo --insecure-policy copy docker-archive:./blog-pim docker://git.kun.is/home/forgejo-nix-action:latest
|
||||||
- name: Logout of container registry
|
atticd:
|
||||||
run: /bin/skopeo logout https://git.kun.is
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
run: git clone https://git.kun.is/home/container-images.git checkout
|
||||||
|
- name: Setup Nix cache
|
||||||
|
run: |
|
||||||
|
/bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
/bin/attic use home
|
||||||
- name: Build Atticd
|
- name: Build Atticd
|
||||||
run: nix build --out-link atticd ./checkout#packages.x86_64-linux.atticd
|
run: nix build --out-link atticd ./checkout#packages.x86_64-linux.atticd
|
||||||
- name: Push atticd to Nix cache
|
- name: Push atticd to Nix cache
|
||||||
run: /bin/attic push home atticd
|
run: /bin/attic push home atticd
|
||||||
- name: Log into container registry
|
- name: Log into container registry
|
||||||
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
||||||
- name: Push Pim's blog to container registry
|
- name: Push atticd to container registry
|
||||||
run: /bin/skopeo --insecure-policy copy docker-archive:./atticd docker://git.kun.is/home/atticd:latest
|
run: /bin/skopeo --insecure-policy copy docker-archive:./atticd docker://git.kun.is/home/atticd:latest
|
||||||
- name: Logout of container registry
|
forgejo-nix-action:
|
||||||
run: /bin/skopeo logout https://git.kun.is
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
||||||
|
steps:
|
||||||
- name: Build forgejo-nix-action
|
- name: Build forgejo-nix-action
|
||||||
run: nix build --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action
|
run: nix build --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action
|
||||||
- name: Push forgjeo-nix-action to Nix cache
|
- name: Push forgjeo-nix-action to Nix cache
|
||||||
run: /bin/attic push home forgejo-nix-action
|
run: /bin/attic push home forgejo-nix-action
|
||||||
- name: Log into container registry
|
- name: Log into container registry
|
||||||
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
run: /bin/skopeo login --tls-verify --username pim --password ${{ secrets.RUNNER_TOKEN }} https://git.kun.is
|
||||||
- name: Push Pim's blog to container registry
|
- name: Push forgejo-nix-action to container registry
|
||||||
run: /bin/skopeo --insecure-policy copy docker-archive:./forgejo-nix-action docker://git.kun.is/home/forgejo-nix-action:latest
|
run: /bin/skopeo --insecure-policy copy docker-archive:./forgejo-nix-action docker://git.kun.is/home/forgejo-nix-action:latest
|
||||||
- name: Logout of container registry
|
|
||||||
run: /bin/skopeo logout https://git.kun.is
|
|
||||||
|
|
Reference in a new issue