From c35167225e5b37a3ebeaf34f780f617c0d8ef8d6 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 13 Jul 2023 14:51:36 +0200 Subject: [PATCH] add push_to_docker_hub --- .github/workflows/compose_push.yaml | 6 ++++-- README.md | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/.github/workflows/compose_push.yaml b/.github/workflows/compose_push.yaml index 4b82518..01ba7a3 100644 --- a/.github/workflows/compose_push.yaml +++ b/.github/workflows/compose_push.yaml @@ -9,9 +9,10 @@ on: tag: required: true type: string - number-of-services: + push_to_docker_hub: required: false - type: number + default: true + type: boolean secrets: dockerhub_user: required: true @@ -77,6 +78,7 @@ jobs: if [ "$STATUS" != "healthy" ]; then echo "${{ inputs.application-name }} is not healthy"; docker-compose -f docker-compose.test.yml ps; exit 1; fi - name: Push Docker image to Docker Hub + if: ${{ inputs.push_to_docker_hub }} run: docker-compose -f docker-compose.test.yml push ${{ inputs.application-name}} - name: Stop containers diff --git a/README.md b/README.md new file mode 100644 index 0000000..cac1ebe --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Workflowator + +this is the home for your shared github action workflows