Skip to content

Commit

Permalink
Move relase to public registry (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
julgircast authored Jul 27, 2023
1 parent 8eef746 commit 354c22c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Google Artifact Registry
uses: docker/login-action@v2
with:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.ARTIFACT_BUILDER_JSON_KEY }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.event_name == 'pull_request' }} || ${{ github.event_name == 'release' }}
Expand All @@ -77,6 +84,15 @@ jobs:
push: ${{ github.event_name == 'pull_request' }}
tags: ghcr.io/castai/audit-logs-receiver:${{ github.sha }}

- name: Build and push main
if: github.event_name != 'release'
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/arm64,linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: us-docker.pkg.dev/castai-hub/library/audit-logs-receiver:${{ github.sha }}

- name: Build and push release
if: github.event_name == 'release'
uses: docker/build-push-action@v4
Expand All @@ -85,5 +101,5 @@ jobs:
push: true
platforms: linux/arm64,linux/amd64
tags: |
ghcr.io/castai/audit-logs-receiver:${{ env.RELEASE_TAG }}
ghcr.io/castai/audit-logs-receiver:latest
us-docker.pkg.dev/castai-hub/library/audit-logs-receiver:${{ env.RELEASE_TAG }}
us-docker.pkg.dev/castai-hub/library/audit-logs-receiver:latest

0 comments on commit 354c22c

Please sign in to comment.