Skip to content

Commit

Permalink
C6 DockerHub Push On Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 authored Nov 29, 2023
1 parent 01bf37b commit 169836c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ permissions:
contents: read

jobs:
debug-pr-status:
name: Input check
runs-on: ubuntu-latest
steps:
- name: Checking your input
run: |
echo "github.event.pull_request.merged : $MERGED_RAW"
echo "github.event.pull_request.merged == 'true' : $MERGED_TRUE_STR"
echo "github.event.pull_request.merged == true : $MERGED_TRUE_BOOL"
env:
MERGED_RAW: ${{ github.event.pull_request.merged }}
MERGED_TRUE_STR: ${{ github.event.pull_request.merged == 'true' }}
MERGED_TRUE_BOOL: ${{ github.event.pull_request.merged == true }}

build-and-push-centos6:
name: Centos6
runs-on: ubuntu-latest
Expand All @@ -35,7 +49,7 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged

- name: Docker Build CentOS6 Image Test
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a # v2.10.0
Expand All @@ -57,8 +71,7 @@ jobs:
cache-from: type=registry,ref=adoptopenjdk/centos6_build_image:latest
cache-to: type=inline
push: true
if: github.event.pull_request.merged == true

if: github.event.pull_request.merged

build-and-push-alpine3:
name: Alpine3
Expand Down

0 comments on commit 169836c

Please sign in to comment.