Skip to content

Commit

Permalink
try no creds
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Aug 2, 2024
1 parent 3dfe5f7 commit f7d9c5b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
EMPTY_SECRET: ' '
DOCKERHUB_PUBLIC_USERNAME: ${{ secrets.DOCKERHUB_PUBLIC_USERNAME }}
services:
ldap:
ldap_with_creds:
# image: kwart/ldap-server
image: ${{ (github.secret_source != 'none') && 'rroemhild/test-openldap' || '' }}
ports:
Expand All @@ -40,6 +40,12 @@ jobs:
credentials:
username: ${{ secrets.DOCKERHUB_PUBLIC_USERNAME || env.EMPTY_SECRET }}
password: ${{ secrets.DOCKERHUB_PUBLIC_TOKEN || env.EMPTY_SECRET }}
ldap_no_creds:
# image: kwart/ldap-server
image: ${{ (github.secret_source == 'none') && 'rroemhild/test-openldap' || '' }}
ports:
- 10389:10389
- 10636:10636
sql-server:
# Docker Hub image
image: mcr.microsoft.com/mssql/server:2019-latest
Expand Down Expand Up @@ -84,6 +90,7 @@ jobs:

- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.secret_source != 'none' }}
with:
username: ${{ secrets.DOCKERHUB_PUBLIC_USERNAME }}
password: ${{ secrets.DOCKERHUB_PUBLIC_TOKEN }}
Expand Down

0 comments on commit f7d9c5b

Please sign in to comment.