Skip to content

Commit

Permalink
docker ci
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Nov 26, 2023
1 parent c6da5be commit 87ac67c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,22 @@ jobs:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#frontend
- run: nix build .#frontend

docker:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
- uses: cachix/install-nix-action@v20
- uses: icewind1991/attic-action@v1
with:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#docker
- name: Push image
if: github.ref == 'refs/heads/main'
run: |
skopeo copy --dest-creds="${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_TOKEN }}" "docker-archive:$(nix build .#docker --print-out-paths)" "docker://demostf/frontend"

0 comments on commit 87ac67c

Please sign in to comment.