Skip to content

Commit

Permalink
another thry
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Sep 22, 2023
1 parent 10a75ff commit 23b22df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,8 @@ jobs:
build_docker_base_images_and_set_env:
name: Build Docker base images and setup environment
runs-on: ubuntu-22.04
env:
IMAGE_NAME: "europe-west3-docker.pkg.dev/rasa-releases/rasa-docker/rasa"
outputs:
base_image_hash: ${{ steps.check_image.outputs.base_image_hash }}
base_mitie_image_hash: ${{ steps.check_image.outputs.base_mitie_image_hash }}
Expand Down Expand Up @@ -1020,6 +1022,7 @@ jobs:
needs: [changes, build_docker_base_images_and_set_env]
env:
IMAGE_TAG: ${{ needs.build_docker_base_images_and_set_env.outputs.image_tag }}
IMAGE_NAME: "europe-west3-docker.pkg.dev/rasa-releases/rasa-docker/rasa"
BASE_IMAGE_HASH: ${{ needs.build_docker_base_images_and_set_env.outputs.base_image_hash }}
BASE_MITIE_IMAGE_HASH: ${{ needs.build_docker_base_images_and_set_env.outputs.base_mitie_image_hash }}
BASE_BUILDER_IMAGE_HASH: ${{ needs.build_docker_base_images_and_set_env.outputs.base_builder_image_hash }}
Expand Down Expand Up @@ -1099,13 +1102,11 @@ jobs:
- name: Push image with main tag 📦
if: needs.changes.outputs.docker == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'RasaHQ/rasa'
run: |
export IMAGE_NAME=${{env.RELEASE_REGISTRY}}/rasa
docker buildx bake --set *.platform=linux/amd64,linux/arm64 -f docker/docker-bake.hcl ${{ matrix.image }} --push
- name: Push image with ${{github.ref}} tag 📦
if: needs.changes.outputs.docker == 'true' && github.event_name == 'push' && env.IS_TAG_BUILD == 'true' && github.repository == 'RasaHQ/rasa'
run: |
export IMAGE_NAME=${{env.RELEASE_REGISTRY}}/rasa
docker buildx bake --set *.platform=linux/amd64,linux/arm64 -f docker/docker-bake.hcl ${{ matrix.image }} --push
- name: Push image with latest tag 📦
Expand All @@ -1119,7 +1120,6 @@ jobs:
LATEST_TAG=$(echo $RELEASE_TAG | sed 's/'$IMAGE_TAG'/latest/g')
export IMAGE_NAME=${{env.RELEASE_REGISTRY}}/rasa
# This will not build the image from ground up, but will only tag the existing image with LATEST_TAG
IMAGE_TAG=${LATEST_TAG} docker buildx bake --set *.platform=linux/amd64,linux/arm64 -f docker/docker-bake.hcl ${{ matrix.image }}
# Push tagged image
Expand Down

0 comments on commit 23b22df

Please sign in to comment.