|
8 | 8 | deploy: |
9 | 9 | runs-on: ubuntu-latest |
10 | 10 | 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 |
13 | 14 | steps: |
14 | 15 | - uses: actions/checkout@v4 |
15 | 16 | - 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 | + |
16 | 23 | - name: Install Heroku CLI |
17 | 24 | run: | |
18 | 25 | curl https://cli-assets.heroku.com/install.sh | sh |
19 | | - - name: Login to Heroku Container registry |
20 | | - run: | |
21 | | - heroku container:login |
22 | 26 |
|
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 |
30 | 28 | 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 }} |
36 | 33 |
|
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