Skip to content

Commit 285e03d

Browse files
authored
Use environment secrets for deployment (#1225)
1 parent 8fd41f0 commit 285e03d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ousd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ jobs:
152152
name: "Deploy App"
153153
runs-on: ubuntu-latest
154154
needs: [contracts-lint, dapp-lint]
155+
environment: ${{github.ref_name}}
155156
env:
156157
HEROKU_TOKEN: ${{ secrets.HEROKU_TOKEN }}
157158
CURR_BRANCH: ${{ github.ref_name }}
@@ -166,6 +167,7 @@ jobs:
166167
uses: docker/setup-buildx-action@v2
167168

168169
- name: Run Docker Login
170+
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
169171
run: docker login --username =_ --password=$HEROKU_TOKEN registry.heroku.com
170172

171173
- name: Identify Heroku App Name

0 commit comments

Comments
 (0)