Skip to content

Commit 19dc8df

Browse files
Attempt to release by re-tagging image
1 parent 34310a3 commit 19dc8df

1 file changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,29 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
env:
11-
REGISTRY_IMAGE: registry.heroku.com/navigate--configs-dev-gn/web
12-
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
11+
REGISTRY_USERNAME: 'nlsoftware'
12+
REGISTRY_IMAGE: noirlab/gpp-nav
13+
HEROKU_APP_NAME: navigate-dev-gn
1314
steps:
1415
- uses: actions/checkout@v4
1516
- uses: pnpm/action-setup@v4
17+
- name: Log in to the Container registry
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ env.REGISTRY_USERNAME }}
21+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
22+
1623
- name: Install Heroku CLI
1724
run: |
1825
curl https://cli-assets.heroku.com/install.sh | sh
19-
- name: Login to Heroku Container registry
20-
run: |
21-
heroku container:login
2226
23-
- name: Set up Docker Buildx
24-
uses: docker/setup-buildx-action@v3
25-
26-
- name: Set version
27-
run: |
28-
cd packages/configs
29-
pnpm pkg set version="${VERSION:11}+$(date +'%Y%m%d').$(git rev-parse --short HEAD)"
27+
- name: Deploy
3028
env:
31-
VERSION: ${{ github.ref }}
32-
33-
- run: |
34-
cd packages/configs
35-
heroku container:push -a navigate-configs-dev-gn web --context-path ../../
29+
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
30+
run: |
31+
heroku container:login
32+
docker pull ${{ env.REGISTRY_IMAGE }}
3633
37-
- name: Deploy
38-
run: heroku container:release web --app=navigate-configs-dev-gn
34+
docker tag ${{ env.REGISTRY_IMAGE }} registry.heroku.com/${{ env.HEROKU_APP_NAME }}/web
35+
docker push registry.heroku.com/${{ env.HEROKU_APP_NAME }}/web
36+
heroku container:release web -a ${{ env.HEROKU_APP_NAME }} -v

0 commit comments

Comments
 (0)