From a9feeac793f7b444febf0e2531e39912d24c3f2b Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 18 May 2024 11:54:16 -0400 Subject: [PATCH] Revert "Always run docker steps (#3034)" This reverts commit 5d41165b5bd62bcf89729a682efc5ca50c3a3159. --- .github/workflows/pipeline.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index e1bfcd5c..c4f93f13 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -150,14 +150,18 @@ jobs: - name: Set up QEMU id: qemu uses: docker/setup-qemu-action@v3 + if: env.DOCKER_IMAGE != '' - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v3 + if: env.DOCKER_IMAGE != '' - uses: actions/checkout@v4 + if: env.DOCKER_IMAGE != '' - uses: actions/download-artifact@v4 + if: env.DOCKER_IMAGE != '' with: name: binaries path: dist @@ -170,6 +174,7 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GitHub Container Registry + if: env.DOCKER_IMAGE != '' uses: docker/login-action@v3 with: registry: ghcr.io @@ -177,6 +182,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata for Docker + if: env.DOCKER_IMAGE != '' id: meta uses: docker/metadata-action@v5 with: @@ -191,6 +197,7 @@ jobs: type=raw,value=develop,enable={{is_default_branch}} - name: Build and Push + if: env.DOCKER_IMAGE != '' uses: docker/build-push-action@v5 with: context: .