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 }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
|
if: ${{ env.GITHUB_SERVER_URL == 'https://github.com' }}
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.GH_REGISTRY }}
|
registry: ${{ env.GH_REGISTRY }}
|
||||||
@@ -94,7 +95,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
target: deploy
|
target: deploy
|
||||||
push: true
|
push: ${{ env.GITHUB_SERVER_URL == 'https://github.com' }}
|
||||||
tags: ${{ steps.meta-develop.outputs.tags }}
|
tags: ${{ steps.meta-develop.outputs.tags }}
|
||||||
labels: ${{ steps.meta-develop.outputs.labels }}
|
labels: ${{ steps.meta-develop.outputs.labels }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
Reference in New Issue
Block a user