Skip to content

Commit

Permalink
Merge pull request #1206 from RasaHQ/INFRA-1159
Browse files Browse the repository at this point in the history
[INFRA-1159] Release Docker images to both GCP and DockerHub
  • Loading branch information
rasa-aadlv authored Feb 4, 2025
2 parents 3aea02a + 17bffab commit 2867d5e
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
description: 'Tag version:'
required: true

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
define-release-version:
name: Define Release Version
Expand Down Expand Up @@ -53,13 +57,29 @@ jobs:
- name: Login to Docker Hub Registry 🔢
run: echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin || true

- name: Build and Push Docker image 📦
- name: Authenticate with gcloud for release registry 🎫
id: 'auth-release'
uses: 'google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d'
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: '${{ secrets.RASA_SDK_RELEASE_ACCOUNT_NAME }}'

- name: Authenticate docker for release registry 🎫
run: gcloud auth configure-docker europe-west3-docker.pkg.dev

- name: Build and Push Docker image to the DockerHub 📦
run: |
make build-and-push-multi-platform-docker
env:
IMAGE_TAG: ${{ needs.define-release-version.outputs.version }}
IMAGE_NAME: "rasa/rasa-sdk"

- name: Build and Push Docker image to the GCP 📦
run: |
IMAGE_NAME=rasa/rasa-sdk
IMAGE_TAG=$IMAGE_TAG
make build-and-push-multi-platform-docker
env:
IMAGE_TAG: ${{ needs.define-release-version.outputs.version }}
IMAGE_NAME: "europe-west3-docker.pkg.dev/rasa-releases/rasa-sdk/rasa-sdk"

release-artifacts-pypi:
name: Release Artifacts PyPI
Expand Down

0 comments on commit 2867d5e

Please sign in to comment.