Update Forgejo action to bump blog-pim Nix input on nixos-servers repo
All checks were successful
/ blog-pim (push) Successful in 1m9s
All checks were successful
/ blog-pim (push) Successful in 1m9s
This commit is contained in:
parent
fe9488d31c
commit
824b03b476
1 changed files with 14 additions and 0 deletions
|
@ -4,6 +4,11 @@ jobs:
|
||||||
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
|
||||||
|
env:
|
||||||
|
GIT_COMMITTER_NAME: Forgejo Action
|
||||||
|
GIT_COMMITTER_EMAIL: noreply@git.kun.is
|
||||||
|
GIT_AUTHOR_NAME: Forgejo Action
|
||||||
|
GIT_AUTHOR_EMAIL: noreply@git.kun.is
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git src
|
run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git src
|
||||||
|
@ -22,3 +27,12 @@ jobs:
|
||||||
/bin/skopeo --insecure-policy copy docker-archive:image docker://${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY_OWNER}/blog-pim:latest
|
/bin/skopeo --insecure-policy copy docker-archive:image docker://${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY_OWNER}/blog-pim:latest
|
||||||
gitrev=$(git --git-dir src/.git --work-tree src rev-parse HEAD)
|
gitrev=$(git --git-dir src/.git --work-tree src rev-parse HEAD)
|
||||||
/bin/skopeo --insecure-policy copy docker-archive:image docker://${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY_OWNER}/blog-pim:$gitrev
|
/bin/skopeo --insecure-policy copy docker-archive:image docker://${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY_OWNER}/blog-pim:$gitrev
|
||||||
|
- name: Clone nixos-servers repo
|
||||||
|
run: git clone https://${{ secrets.RUNNER_TOKEN }}@${GITHUB_SERVER_URL#https://}/home/nixos-servers.git nixos-servers
|
||||||
|
- name: Update Nix input on nixos-servers repo
|
||||||
|
run: nix flake lock --update-input blog-pim ./nixos-servers
|
||||||
|
- name: Push changes to nixos-servers repo
|
||||||
|
run: |
|
||||||
|
git --git-dir nixos-servers/.git --work-tree nixos-servers add -A
|
||||||
|
git --git-dir nixos-servers/.git --work-tree nixos-servers commit --message "Bump blog-pim Nix flake input"
|
||||||
|
git --git-dir nixos-servers/.git --work-tree nixos-servers push
|
||||||
|
|
Loading…
Reference in a new issue