Skip to content

Commit

Permalink
neeext try
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Sep 22, 2023
1 parent c978299 commit 10a75ff
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1099,12 +1099,14 @@ 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: |
docker buildx bake --set *.platform=linux/amd64,linux/arm64 -t ${{env.RELEASE_REGISTRY}}/rasa:${IMAGE_TAG} -f docker/docker-bake.hcl ${{ matrix.image }} --push
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: |
docker buildx bake --set *.platform=linux/amd64,linux/arm64 -f docker/docker-bake.hcl -t ${{env.RELEASE_REGISTRY}}/rasa:${IMAGE_TAG} ${{ matrix.image }} --push
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 📦
if: needs.changes.outputs.docker == 'true' && github.event_name == 'push' && env.IS_TAG_BUILD == 'true' && github.repository == 'RasaHQ/rasa' && needs.build_docker_base_images_and_set_env.outputs.is_newest_version == 'true'
Expand All @@ -1117,8 +1119,11 @@ 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
IMAGE_TAG=${LATEST_TAG} docker buildx bake --set *.platform=linux/amd64,linux/arm64 -t ${{env.RELEASE_REGISTRY}}/rasa:${LATEST_TAG} -f docker/docker-bake.hcl ${{ matrix.image }} --push
IMAGE_TAG=${LATEST_TAG} docker buildx bake --set *.platform=linux/amd64,linux/arm64 -f docker/docker-bake.hcl ${{ matrix.image }} --push
deploy:
name: Deploy to PyPI
Expand Down

0 comments on commit 10a75ff

Please sign in to comment.