Skip to content

Commit

Permalink
GHA are fun
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 11, 2024
1 parent b2c89f2 commit 50e00ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-services-no-credentials.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Load Services via Docker
name: Load Services via Docker (no credentials)

on:
workflow_call:
Expand Down Expand Up @@ -49,3 +49,6 @@ jobs:
image: mongo-express
memcached:
image: bitnami/memcached:latest
steps:
- name: Docker Services loaded
run: echo "Docker Services loaded"
4 changes: 3 additions & 1 deletion .github/workflows/build-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Load Docker Images

on:
workflow_call:
workflow_dispatch:

jobs:
start-services:
Expand Down Expand Up @@ -65,3 +64,6 @@ jobs:
credentials:
username: ${{ secrets.DOCKERHUB_PUBLIC_USERNAME }}
password: ${{ secrets.DOCKERHUB_PUBLIC_TOKEN }}
steps:
- name: Docker Services loaded
run: echo "Docker Services loaded"
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
if: ${{ env.DOCKERHUB_PUBLIC_USERNAME != '' }}
uses: ./.github/workflows/build-services.yml
- name: Start Docker Services (without credentials)
if: ${{ env.DOCKERHUB_PUBLIC_USERNAME != '' }}
if: ${{ env.DOCKERHUB_PUBLIC_USERNAME == '' }}
uses: ./.github/workflows/build-services-no-credentials.yml

- name: Configure Build Java Version
Expand Down

0 comments on commit 50e00ee

Please sign in to comment.