Skip to content

Commit

Permalink
add push_to_docker_hub
Browse files Browse the repository at this point in the history
  • Loading branch information
stereosupersonic committed Jul 13, 2023
1 parent 29cd8ee commit c351672
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/compose_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Workflowator

this is the home for your shared github action workflows

0 comments on commit c351672

Please sign in to comment.