Skip to content

Commit 9b4e18d

Browse files
authored
fix(release): update release env name (#23)
1 parent 9790089 commit 9b4e18d

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
group: ${{ github.workflow }}-release-${{ github.ref_name }}
1616
cancel-in-progress: false
1717
environment:
18-
name: release
18+
name: release-ecr
1919

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

4141
- name: Release (ECR)
42-
run: uv run task release-ecr-no-build
42+
run: uv run task release-ecr-no-build {{.ECR_REPOSITORY_URL}}

Taskfile.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ vars:
77
DOCKER_IMAGE_TAG:
88
sh: ./scripts/get-version.sh
99
DOCKER_IMAGE: "{{.DOCKER_IMAGE_NAME}}:{{.DOCKER_IMAGE_TAG}}"
10+
ECR_REPOSITORY_URL:
11+
sh: echo $ECR_REPOSITORY_URL
1012

1113
tasks:
1214
default:
@@ -83,10 +85,10 @@ tasks:
8385
deps:
8486
- build
8587
cmds:
86-
- ./scripts/release-ecr.sh
88+
- ./scripts/release-ecr.sh {{.ECR_REPOSITORY_URL}}
8789

8890
release-ecr-no-build:
8991
desc: Release the Docker image to ECR without building it first
9092
run: once
9193
cmds:
92-
- ./scripts/release-ecr.sh
94+
- ./scripts/release-ecr.sh {{.ECR_REPOSITORY_URL}}

scripts/release-ecr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
ECR_REPOSITORY_URL="${1:-$ECR_REPOSITORY_URL}"
5+
ECR_REPOSITORY_URL="$1"
66

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

0 commit comments

Comments
 (0)