This commit is contained in:
commit
6b2d206e07
5 changed files with 219 additions and 0 deletions
14
.forgejo/workflows/nix.yaml
Normal file
14
.forgejo/workflows/nix.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: nix build -L .#runner
|
||||
- name: upload image
|
||||
run: |
|
||||
docker login -u ${{ secrets.REG_USER }} -p ${{ secrets.REG_TOKEN }} ${{ secrets.CI_REGISTRY }}
|
||||
export IMAGE_TAG=$(docker load -i result | grep -Po 'Loaded image.*: \K.*')
|
||||
echo "Pushing image ${IMAGE_TAG}"
|
||||
docker tag "${IMAGE_TAG}" "${{ secrets.CI_REGISTRY }}/${{ secrets.REG_USER }}/nix-runner:latest"
|
||||
docker push "${{ secrets.CI_REGISTRY }}/${{ secrets.REG_USER }}/nix-runner:latest"
|
Loading…
Add table
Add a link
Reference in a new issue