From a10fd5fb519a9e1aa1075b8f3b9d712368f9df45 Mon Sep 17 00:00:00 2001 From: My CTO Date: Fri, 1 Dec 2023 22:26:45 +0100 Subject: [PATCH] Fx indentation --- .github/workflows/docker-image.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e506dba..fb2a8a5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,18 +7,19 @@ on: branches: [ "*" ] jobs: - build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag anypay/web3-checkout:${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.head_ref }} + - name: Checkout code + uses: actions/checkout@v3 - - name: Push Docker Image + - name: Build the Docker image + run: docker build . --file Dockerfile --tag anypay/web3-checkout:${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.head_ref }} + + - name: Push Docker Image if: github.event_name == 'push' && github.event_name != 'pull_request' run: | echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - docker push your-docker-username/your-docker-repo:latest + docker push anypay/web3-checkout:${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.head_ref }} +