Skip to content

Commit

Permalink
Seperate Building of main image and client images
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahsa committed Jan 29, 2024
1 parent 450497f commit 4ea7ba2
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,39 @@ jobs:
- uses: codecov/codecov-action@v3
with:
files: coverage.out
build:

build-main:
name: build
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
file: "Dockerfile"
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}

build-clients:
name: build
runs-on: ubuntu-latest
needs:
- lint
- test
strategy:
matrix:
dir: ["", "clients/proxy-client", "clients/harbor-client"]
dir: ["clients/proxy-client", "clients/harbor-client"]
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
Expand All @@ -52,7 +76,7 @@ jobs:
context: ${{ matrix.dir }}
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}${{ matrix.dir }}:${{ github.sha }}
tags: ghcr.io/${{ github.repository }}/${{ matrix.dir }}:${{ github.sha }}

release:
name: release
Expand Down

0 comments on commit 4ea7ba2

Please sign in to comment.