turns out you need to log into docker to push images

Signed-off-by: Xe Iaso <xe@tailscale.com>
This commit is contained in:
Xe Iaso 2023-01-16 17:58:24 +00:00
parent f560b81d38
commit 1bdcf66f0e

View file

@ -20,6 +20,13 @@ jobs:
run: |
nix build .#docker
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"
if: "github.event_name == 'push' && github.ref_name == 'main'"
run: |