Skip to content

Commit

Permalink
Revert "Check if pull request is merged into master"
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie authored Oct 30, 2023
1 parent 25d3883 commit bd59cc1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,10 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check if pull request is merged into master
id: check-merge
run: |
from_branch="${{ github.event.pull_request.head.ref }}"
to_branch="${{ github.event.pull_request.base.ref }}"
echo "{is_merge_into_master}={"$from_branch" != "$to_branch" && "$to_branch" == "master"}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ steps.check-merge.outputs.is_merge_into_master == 'true' }}
push: ${{ github.event.pull_request.merged == true }}
tags: ghcr.io/${{github.repository_owner}}/ledgersmb_circleci-perl:${{ matrix.version }}
build-args: |
perl=${{ matrix.version }}
Expand All @@ -55,16 +49,10 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check if pull request is merged into master
id: check-merge
run: |
from_branch="${{ github.event.pull_request.head.ref }}"
to_branch="${{ github.event.pull_request.base.ref }}"
echo "{is_merge_into_master}={"$from_branch" != "$to_branch" && "$to_branch" == "master"}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ steps.check-merge.outputs.is_merge_into_master == 'true' }}
push: ${{ github.event.pull_request.merged == true }}
tags: ghcr.io/${{github.repository_owner}}/ledgersmb_circleci-postgres:${{ matrix.version }}
build-args: |
version=${{ matrix.version }}
Expand Down

0 comments on commit bd59cc1

Please # to comment.