Skip to content

Commit

Permalink
feat: publish image to google container registry (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin authored Aug 30, 2023
1 parent 7bf3401 commit 111264f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-images.yaml
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 }}

2 comments on commit 111264f

@francardoso93
Copy link

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?

@TimoGlastra
Copy link
Member

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.

Please sign in to comment.