Skip to content

Commit

Permalink
Just use the Docker compose instead (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus authored May 14, 2022
1 parent 4e0d5d9 commit 8a30848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,11 @@ jobs:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true

services:
baget:
image: loicsharma/baget
env:
ApiKey: acd0b30512ac4fa39f62eb7a61fcf56c
ports:
- 5555:80

steps:
- uses: actions/checkout@v2

- name: Start Docker registry (delayed, as we need to mount the htpasswd from the checkout)
run: |
docker run \
-d \
-v ${{ github.workspace }}/Services/Registry:/auth:rw \
-p 5000:5000 \
-e "REGISTRY_AUTH=htpasswd" \
-e "REGISTRY_AUTH_HTPASSWD_REALM=Bake test registry" \
-e "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd" \
registry:2
- name: Start Docker services
run: docker-compose up -d --force-recreate

- name: Setup .NET Core 3.1.x
uses: actions/setup-dotnet@v1
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}

services:
baget:
image: loicsharma/baget
env:
ApiKey: acd0b30512ac4fa39f62eb7a61fcf56c
ports:
- 5555:80

steps:
- uses: actions/checkout@v2

- name: Start Docker registry (delayed, as we need to mount the htpasswd from the checkout)
run: |
docker run \
-d \
-v ${{ github.workspace }}/Services/Registry:/auth:rw \
-p 5000:5000 \
-e "REGISTRY_AUTH=htpasswd" \
-e "REGISTRY_AUTH_HTPASSWD_REALM=Bake test registry" \
-e "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd" \
registry:2
- name: Start Docker services
run: docker-compose up -d --force-recreate

- name: Setup .NET Core 3.1.x
uses: actions/setup-dotnet@v1
Expand Down

0 comments on commit 8a30848

Please sign in to comment.