diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index e93f33d1..ce9fb718 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -46,6 +46,17 @@ jobs: run: docker load --input /tmp/server-docker/temporal-autosetup.tar working-directory: '.' + - name: Override IMAGE_TAG environment variable + if: ${{ inputs.docker-image-artifact-name }} + run: | + image_tag=latest + # image_tag won't exist on older builds (like 1.22.0), so default to latest + if [ -f /tmp/server-docker/image_tag ]; then + image_tag=$(cat /tmp/server-docker/image_tag) + fi + echo "IMAGE_TAG=${image_tag}" >> $GITHUB_ENV + working-directory: '.' + - name: Checkout SDK features repo uses: actions/checkout@v3 with: diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index eb134b54..692292fb 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -46,6 +46,17 @@ jobs: run: docker load --input /tmp/server-docker/temporal-autosetup.tar working-directory: '.' + - name: Override IMAGE_TAG environment variable + if: ${{ inputs.docker-image-artifact-name }} + run: | + image_tag=latest + # image_tag won't exist on older builds (like 1.22.0), so default to latest + if [ -f /tmp/server-docker/image_tag ]; then + image_tag=$(cat /tmp/server-docker/image_tag) + fi + echo "IMAGE_TAG=${image_tag}" >> $GITHUB_ENV + working-directory: '.' + - name: Checkout SDK features repo uses: actions/checkout@v3 with: diff --git a/.github/workflows/java.yaml b/.github/workflows/java.yaml index a5078c38..275b7eaa 100644 --- a/.github/workflows/java.yaml +++ b/.github/workflows/java.yaml @@ -47,6 +47,17 @@ jobs: run: docker load --input /tmp/server-docker/temporal-autosetup.tar working-directory: '.' + - name: Override IMAGE_TAG environment variable + if: ${{ inputs.docker-image-artifact-name }} + run: | + image_tag=latest + # image_tag won't exist on older builds (like 1.22.0), so default to latest + if [ -f /tmp/server-docker/image_tag ]; then + image_tag=$(cat /tmp/server-docker/image_tag) + fi + echo "IMAGE_TAG=${image_tag}" >> $GITHUB_ENV + working-directory: '.' + - name: Checkout SDK features repo uses: actions/checkout@v3 with: diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index f07e5a0d..9c29142c 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -46,6 +46,17 @@ jobs: run: docker load --input /tmp/server-docker/temporal-autosetup.tar working-directory: '.' + - name: Override IMAGE_TAG environment variable + if: ${{ inputs.docker-image-artifact-name }} + run: | + image_tag=latest + # image_tag won't exist on older builds (like 1.22.0), so default to latest + if [ -f /tmp/server-docker/image_tag ]; then + image_tag=$(cat /tmp/server-docker/image_tag) + fi + echo "IMAGE_TAG=${image_tag}" >> $GITHUB_ENV + working-directory: '.' + - name: Checkout SDK features repo uses: actions/checkout@v3 with: diff --git a/.github/workflows/typescript.yaml b/.github/workflows/typescript.yaml index 2e6a259f..6e5ec400 100644 --- a/.github/workflows/typescript.yaml +++ b/.github/workflows/typescript.yaml @@ -46,6 +46,17 @@ jobs: run: docker load --input /tmp/server-docker/temporal-autosetup.tar working-directory: '.' + - name: Override IMAGE_TAG environment variable + if: ${{ inputs.docker-image-artifact-name }} + run: | + image_tag=latest + # image_tag won't exist on older builds (like 1.22.0), so default to latest + if [ -f /tmp/server-docker/image_tag ]; then + image_tag=$(cat /tmp/server-docker/image_tag) + fi + echo "IMAGE_TAG=${image_tag}" >> $GITHUB_ENV + working-directory: '.' + - name: Checkout SDK features repo uses: actions/checkout@v3 with: diff --git a/dockerfiles/docker-compose.for-server-image.yaml b/dockerfiles/docker-compose.for-server-image.yaml index 9260d93d..4e5d8d7f 100644 --- a/dockerfiles/docker-compose.for-server-image.yaml +++ b/dockerfiles/docker-compose.for-server-image.yaml @@ -4,7 +4,7 @@ version: '3.5' services: temporal-server: - image: temporaliotest/auto-setup:latest + image: temporaliotest/auto-setup:${IMAGE_TAG:-latest} environment: - CASSANDRA_SEEDS=cassandra - ENABLE_ES=true