From 0c935c765168413cadafef9f9c427aca8e8601ce Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 17 Jun 2020 18:40:41 +0200 Subject: [PATCH] Fix build workflow --- .github/workflows/build.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f44b0de..53e8b506 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,14 +82,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" - - - name: Env vars - run: env|sort - name: Prepare id: prepare @@ -125,23 +117,23 @@ jobs: docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }} - name: Docker Login - if: success() && github.event_name != 'pull_request' && endsWith(github.ref, github.repository.default_branch) + if: success() && github.event_name != 'pull_request' && endsWith(github.ref, github.event.repository.default_branch) env: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} run: | echo "${DOCKER_PASSWORD}" | docker login --username "${{ steps.prepare.outputs.docker_username }}" --password-stdin - name: Docker Buildx (push) - if: success() && github.event_name != 'pull_request' && endsWith(github.ref, github.repository.default_branch) + if: success() && github.event_name != 'pull_request' && endsWith(github.ref, github.event.repository.default_branch) run: | docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} - name: Docker Check Manifest - if: success() && github.event_name != 'pull_request' && endsWith(github.ref, github.repository.default_branch) + if: success() && github.event_name != 'pull_request' && endsWith(github.ref, github.event.repository.default_branch) run: | docker run --rm mplatform/mquery ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }} - name: Clear - if: always() && github.event_name != 'pull_request' && endsWith(github.ref, github.repository.default_branch) + if: always() && github.event_name != 'pull_request' && endsWith(github.ref, github.event.repository.default_branch) run: | rm -f ${HOME}/.docker/config.json