Skip to content

Commit ee09133

Browse files
Merge pull request #20 from unsplash/maint/new-cluster
Switch to new cluster and build credentials
2 parents 57960f2 + 277ebe6 commit ee09133

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,26 @@ jobs:
4444
docker tag mercury "$REPO":latest
4545
docker push --all-tags "$REPO"
4646
env:
47-
REPO: 060568373025.dkr.ecr.us-west-2.amazonaws.com/mercury
47+
REPO: ${{ vars.AWS_ACCOUNT }}.dkr.ecr.us-west-2.amazonaws.com/mercury
4848

4949
- name: Deploy
5050
run: |
5151
# Force a new deployment, implicitly utilising the new image on the
5252
# same `latest` image tag.
5353
nix develop .#ops -c \
5454
aws ecs update-service --no-cli-pager \
55-
--cluster shared-cluster-staging \
55+
--cluster ${{ vars.TOOLS_CLUSTER }} \
5656
--service mercury-service \
5757
--force-new-deployment
5858
nix develop .#ops -c \
5959
aws ecs wait services-stable \
60-
--cluster shared-cluster-staging \
60+
--cluster ${{ vars.TOOLS_CLUSTER }} \
6161
--services mercury-service
6262
6363
# This (emphasis on `--fail-with-body`) acts as a sort of final E2E test.
6464
- name: Notify (Test)
6565
run: |
66-
curl https://mercury.proxy.unsplash.com/api/v1/slack --fail-with-body -X POST \
66+
curl ${{ vars.MERCURY_ENDPOINT }}/api/v1/slack --fail-with-body -X POST \
6767
--oauth2-bearer '${{ secrets.MERCURY_SLACK_TOKEN }}' \
6868
-d channel=playground \
6969
-d title='🚀 Mercury' \

0 commit comments

Comments
 (0)