Fix pipeline (disable docker job when running on a PR from a forked repo)
This commit is contained in:
@@ -140,21 +140,21 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: crazy-max/ghaction-docker-buildx@v1
|
uses: crazy-max/ghaction-docker-buildx@v1
|
||||||
if: ${{env.DOCKER_IMAGE}} != ''
|
if: env.DOCKER_IMAGE != ''
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
if: ${{env.DOCKER_IMAGE}} != ''
|
if: env.DOCKER_IMAGE != ''
|
||||||
|
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
if: ${{env.DOCKER_IMAGE}} != ''
|
if: env.DOCKER_IMAGE != ''
|
||||||
with:
|
with:
|
||||||
name: binaries
|
name: binaries
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: Build the Docker image and push
|
- name: Build the Docker image and push
|
||||||
if: ${{env.DOCKER_IMAGE}} != ''
|
if: env.DOCKER_IMAGE != ''
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE: ${{secrets.DOCKER_IMAGE}}
|
DOCKER_IMAGE: ${{secrets.DOCKER_IMAGE}}
|
||||||
DOCKER_PLATFORM: linux/amd64,linux/arm/v7,linux/arm64
|
DOCKER_PLATFORM: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
|
|||||||
Reference in New Issue
Block a user