-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (30 loc) · 1.1 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Docker"
on:
push:
branches:
- main
jobs:
fernglas:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v12
with:
name: wobcom-public
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#fernglas-docker -vL
- run: 'nix run .#skopeo -- login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io'
- run: 'nix run .#skopeo -- copy docker-archive://$(readlink ./result) docker://ghcr.io/wobcom/fernglas:latest'
fernglas-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v12
with:
name: wobcom-public
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#fernglas-frontend-docker -vL
- run: 'nix run .#skopeo -- login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io'
- run: 'nix run .#skopeo -- copy docker-archive://$(readlink ./result) docker://ghcr.io/wobcom/fernglas-frontend:latest'