2024-06-27 13:59:12 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
2024-06-27 14:03:31 +02:00
|
|
|
- uses: actions/checkout@v3
|
2024-06-27 14:34:16 +02:00
|
|
|
- run: nix build -L .#runner
|
2024-06-27 15:24:22 +02:00
|
|
|
- name: upload image
|
|
|
|
run: |
|
|
|
|
docker login -u ${{ secrets.REG_USER }} -p ${{ secrets.REG_TOKEN }} ${{ secrets.CI_REGISTRY }}
|
|
|
|
export IMAGE_TAG=$(docker load < 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"
|