-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: publish image to google container registry (#15)
- Loading branch information
1 parent
7bf3401
commit 111264f
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish Docker Images to Google Cloud Artifact Registry | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish-mediator-image: | ||
runs-on: ubuntu-20.04 | ||
name: Publish Mediator Image | ||
|
||
# Add "id-token" with the intended permissions. | ||
permissions: | ||
contents: 'read' | ||
packages: 'read' | ||
id-token: 'write' | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up and authenticate gcloud | ||
uses: ./.github/actions/setup-gcloud | ||
|
||
- name: Log in to the Container registry | ||
run: gcloud auth configure-docker europe-docker.pkg.dev | ||
|
||
- name: Build and push Agent Server Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
file: ./apps/mediator/Dockerfile | ||
push: true | ||
tags: europe-docker.pkg.dev/animo-saas/paradym/mediator:${{ github.run_id }} |
111264f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you going to stop pushing docker images to GitHub? What is the official location to donwload them?
111264f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we will keep pushing them to github. This is for our own internal mediator we use for Paradym.