diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3501f0f..98e9db6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -17,16 +17,16 @@ jobs: uses: actions/checkout@v3 - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: # replace it with your local IP config-inline: | - [registry."harbor.realm.local"] + [registry."${{ env.REGISTRY }}"] ca = ["/usr/local/share/ca-certificates/minica.pem"] - name: Login to Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: - registry: https://harbor.realm.local # replace it with your local IP + registry: ${{ env.REGISTRY }} # replace it with your local IP username: ${{ secrets.HARBORUSER }} password: ${{ secrets.HARBORPASS }} @@ -45,5 +45,5 @@ jobs: tags: | # replace it with your local IP and tags #192.168.0.29:3000/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} #192.168.0.29:3000/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} - harbor.realm.local/library/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} - harbor.realm.local/library/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} + ${{ env.REGISTRY }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} + ${{ env.REGISTRY }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}