Skip to content

Commit

Permalink
Update build workflows to expose registry service on port 5000
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Apr 11, 2024
1 parent e99892c commit caec6fa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
needs: detect-changes
name: Setup, Build
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
continue-on-error: true
if : ${{ needs.detect-changes.outputs.image_variants != '[]' }}
strategy:
Expand All @@ -36,22 +41,24 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Build
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.IMAGE_VARIANT }}
tags: quota-microservices:latest
push: false
push: true
tags: localhost:5000/hydroshare/quota-microservices:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Extract built package
uses: shrink/actions-docker-extract@v3
id: extract
with:
image: quota-microservices
image: localhost:5000/hydroshare/quota-microservices:latest
path: /output/.
destination: output

Expand Down

0 comments on commit caec6fa

Please sign in to comment.