only push to github if running on github
This commit is contained in:
3
.github/workflows/build_docker_image.yml
vendored
3
.github/workflows/build_docker_image.yml
vendored
@@ -47,6 +47,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: ${{ env.GITHUB_SERVER_URL == 'https://github.com' }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.GH_REGISTRY }}
|
||||
@@ -94,7 +95,7 @@ jobs:
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
target: deploy
|
||||
push: true
|
||||
push: ${{ env.GITHUB_SERVER_URL == 'https://github.com' }}
|
||||
tags: ${{ steps.meta-develop.outputs.tags }}
|
||||
labels: ${{ steps.meta-develop.outputs.labels }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
Reference in New Issue
Block a user