also tagging with latest commit with a master tag

This commit is contained in:
Rok Garbas 2022-01-21 14:40:34 +01:00
parent a078a645da
commit c79087eb2a
No known key found for this signature in database
GPG key ID: A0E01EF44C27BF00

View file

@ -98,9 +98,11 @@ jobs:
- run: nix-build -A checks.$(nix-instantiate --eval -E 'builtins.currentSystem' --json).dockerImage
- run: docker load -i ./result/image.tar.gz
- run: docker tag nix:$NIX_VERSION nixos/nix:$NIX_VERSION
- run: docker tag nix:$NIX_VERSION nixos/nix:master
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: docker push nixos/nix:$NIX_VERSION
- run: docker push nixos/nix:master