ci: fix token
This commit is contained in:
@@ -27,15 +27,15 @@ jobs:
|
|||||||
run: docker load < hello-image.tar.gz
|
run: docker load < hello-image.tar.gz
|
||||||
|
|
||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: git.zhukovsky.me
|
registry: git.zhukovsky.me
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Tag and Push
|
- name: Tag and Push
|
||||||
run: |
|
run: |
|
||||||
REGISTRY_IMAGE="git.zhukovsky.me/$(echo ${{ gitea.repository }}"
|
REGISTRY_IMAGE="git.zhukovsky.me/${{ gitea.repository }}"
|
||||||
|
echo "Pushing image to: $REGISTRY_IMAGE"
|
||||||
|
|
||||||
docker tag test-nix-hello:latest $REGISTRY_IMAGE:latest
|
docker tag test-nix-hello:latest $REGISTRY_IMAGE:latest
|
||||||
docker push $REGISTRY_IMAGE:latest
|
docker push $REGISTRY_IMAGE:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user