Skip to content

Commit

Permalink
ci(main): enable docker for tagged pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
nialov committed Feb 5, 2025
1 parent a315b00 commit cfa5bef
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,26 +138,24 @@ jobs:
- uses: actions/configure-pages@v5
- id: deployment
uses: actions/deploy-pages@v4
# docker:
# runs-on: ubuntu-latest
# needs: [nix]
# timeout-minutes: 60
# steps:
# - uses: actions/checkout@v4
# - uses: DeterminateSystems/nix-installer-action@v16
# with:
# # TODO: https://github.com/DeterminateSystems/nix-installer-action/issues/133
# source-tag: "v0.32.3"
# - uses: cachix/cachix-action@v15
# with:
# name: nialov
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN_NIALOV }}"
# - name: Push to registry
# env:
# PUSHER_TOKEN: ${{ secrets.PUSHER_TOKEN }}
# REGISTRY: ${{ secrets.REGISTRY }}
# PROJECT: ${{ secrets.PROJECT }}
# # TODO: Should not run unless on master branch?
# # Might also be too intense for the registry
# run: |
# nix run .#push-fractopo-validation-image -- "$REGISTRY" "$PROJECT" "$PUSHER_TOKEN"
docker:
runs-on: ubuntu-latest
needs: [nix]
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: cachix/cachix-action@v15
with:
name: nialov
authToken: "${{ secrets.CACHIX_AUTH_TOKEN_NIALOV }}"
- name: Push to registry on tag
if: >
github.event_name == 'push'
&& startsWith(github.ref, 'refs/tags')
env:
PUSHER_TOKEN: ${{ secrets.PUSHER_TOKEN }}
REGISTRY: ${{ secrets.REGISTRY }}
PROJECT: ${{ secrets.PROJECT }}
run: |
nix run .#push-fractopo-validation-image -- "$REGISTRY" "$PROJECT" "$PUSHER_TOKEN"

0 comments on commit cfa5bef

Please sign in to comment.