nix-runner-container/.forgejo/workflows/nix.yaml
Harald Hoyer 59ba468438
All checks were successful
/ build (push) Successful in 1m45s
feat: remove docker status check in nix workflow
- Removed unnecessary docker status and verification commands from the nix workflow file `.forgejo/workflows/nix.yaml`
- This simplifies the workflow and enhances its efficiency.
2024-06-27 16:03:22 +02:00

15 lines
600 B
YAML

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"