forgejo: fix docker registry username when push tag
Some checks failed
/ push (push) Failing after 36s

This commit is contained in:
Tigor Hutasuhut 2024-06-16 10:27:52 +07:00
parent fafb96cf08
commit 8f85b1acbe

View file

@ -18,7 +18,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v4
- name: Docker Build and Push to Forgejo Registry
run: docker buildx build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:latest .
run: docker buildx build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t git.tigor.web.id/${{secrets.DOCKER_USERNAME}}/redmage:${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:latest .
- name: Login to Github Docker Registry
uses: docker/login-action@v3
with:
@ -26,4 +26,4 @@ jobs:
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PASSWORD }}
- name: Docker Build and Push to Github Registry
run: docker buildx build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t ghrc.io/tigor/redmage:${{ github.ref_name }} -t ghcr.io/tigor/redmage:latest .
run: docker buildx build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t ghrc.io/${{secrets.GHCR_USERNAME}}/redmage:${{ github.ref_name }} -t ghcr.io/tigor/redmage:latest .