diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 81c0895..53db30d 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -79,7 +79,7 @@ jobs: production_deploy_apply: runs-on: ubuntu-latest - environment: staging + environment: production needs: [production_deploy_plan] steps: - name: Checkout diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index f217925..2fad2a9 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -178,7 +178,7 @@ jobs: # get the image digest from the build job with optional override from vars context TF_VAR_image: ${{ vars.IMAGE || needs.build_test_push.outputs.image_digest }} - create_release: + create_draft_release: name: Create Release runs-on: ubuntu-latest needs: [build_test_push, staging_deploy_apply] @@ -193,7 +193,7 @@ jobs: id: create_draft_release uses: softprops/action-gh-release@v1 with: - name: Draft Release - '${{ github.event.push.head_commit.message }}' + name: Draft Release - '${{ github.event.head_commit.message }}' body: | ## Info Commit ${{ github.sha }} was deployed to `staging`. [See code diff](${{ github.event.compare }}). diff --git a/deploy/tf/ecs/variables.tf b/deploy/tf/ecs/variables.tf index f065aa4..abf45f6 100644 --- a/deploy/tf/ecs/variables.tf +++ b/deploy/tf/ecs/variables.tf @@ -34,13 +34,13 @@ variable "ecr_repository_url" { type = string } -variable "image" { - description = "The digest/tag of the docker image to pull from ECR" +variable "environment" { + description = "Environment name to prepend/append to resource names" type = string } -variable "environment" { - description = "Environment name to prepend/append to resource names" +variable "image" { + description = "The digest/tag of the docker image to pull from ECR" type = string }