From e9dd034345c451dbbd37ec307b79b76b1fb29f52 Mon Sep 17 00:00:00 2001 From: Gwyn Date: Sat, 1 Jun 2024 19:35:27 -0600 Subject: [PATCH] Fixes typo in setting the outputs. --- .github/workflows/publish_website_docker_image.yaml | 2 +- .github/workflows/release_website.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_website_docker_image.yaml b/.github/workflows/publish_website_docker_image.yaml index 582a31e..3b4c4e2 100644 --- a/.github/workflows/publish_website_docker_image.yaml +++ b/.github/workflows/publish_website_docker_image.yaml @@ -13,7 +13,7 @@ jobs: DOCKERIMAGE: docker.io/playtechnique/website:${{ github.run_number }} runs-on: ubuntu-latest outputs: - dockerimage: ${{ steps.set-docker-iamge.outputs.dockerimage }} + dockerimage: ${{ steps.set-docker-image.outputs.dockerimage }} steps: - name: Log in to DockerHub diff --git a/.github/workflows/release_website.yaml b/.github/workflows/release_website.yaml index 2757068..ad1dd14 100644 --- a/.github/workflows/release_website.yaml +++ b/.github/workflows/release_website.yaml @@ -17,6 +17,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: validate input + run: | + if [ -z "${{ inputs.docker-image }}" ]; then + echo "Input was ${{ inputs.docker-image }}. Bailing". + exit 1 + fi + - name: edit file run: | yq e '.spec.template.spec.containers[0].image = "${{ inputs.docker-image }}"' -i website-deployment/k8s-manifests/overlays/production/deployment-container-version-patch.yaml