turns out you need to log into docker to push images
Signed-off-by: Xe Iaso <xe@tailscale.com>
This commit is contained in:
parent
f560b81d38
commit
1bdcf66f0e
7
.github/workflows/nix.yaml
vendored
7
.github/workflows/nix.yaml
vendored
|
@ -20,6 +20,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
nix build .#docker
|
nix build .#docker
|
||||||
docker load < ./result
|
docker load < ./result
|
||||||
|
- name: "docker login"
|
||||||
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
|
||||||
|
if: "github.event_name == 'push' && github.ref_name == 'main'"
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: "Docker image push"
|
- name: "Docker image push"
|
||||||
if: "github.event_name == 'push' && github.ref_name == 'main'"
|
if: "github.event_name == 'push' && github.ref_name == 'main'"
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue