Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
group: ${{ github.workflow }}-release-${{ github.ref_name }}
cancel-in-progress: false
environment:
name: release
name: release-ecr

steps:
# Use a merge queue to avoid `main` commit race conditions.
Expand All @@ -39,4 +39,4 @@ jobs:
run: uv run task build

- name: Release (ECR)
run: uv run task release-ecr-no-build
run: uv run task release-ecr-no-build {{.ECR_REPOSITORY_URL}}
6 changes: 4 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ vars:
DOCKER_IMAGE_TAG:
sh: ./scripts/get-version.sh
DOCKER_IMAGE: "{{.DOCKER_IMAGE_NAME}}:{{.DOCKER_IMAGE_TAG}}"
ECR_REPOSITORY_URL:
sh: echo $ECR_REPOSITORY_URL

tasks:
default:
Expand Down Expand Up @@ -83,10 +85,10 @@ tasks:
deps:
- build
cmds:
- ./scripts/release-ecr.sh
- ./scripts/release-ecr.sh {{.ECR_REPOSITORY_URL}}

release-ecr-no-build:
desc: Release the Docker image to ECR without building it first
run: once
cmds:
- ./scripts/release-ecr.sh
- ./scripts/release-ecr.sh {{.ECR_REPOSITORY_URL}}
2 changes: 1 addition & 1 deletion scripts/release-ecr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

ECR_REPOSITORY_URL="${1:-$ECR_REPOSITORY_URL}"
ECR_REPOSITORY_URL="$1"

IMAGE_NAME="$(echo "$ECR_REPOSITORY_URL" | cut -d '/' -f 2)"
IMAGE_TAG="$(./scripts/get-version.sh)"
Expand Down