Skip to content

Commit b7dfd29

Browse files
authored
Fix docker login in CI (#1227)
* Fix docker login * Add CI/CD status
1 parent 92edf37 commit b7dfd29

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/ousd.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
runs-on: ubuntu-latest
154154
needs: [contracts-lint, dapp-lint]
155155
environment:
156-
name: ${{github.ref_name}}
156+
name: ${{ github.ref_name }}
157157
env:
158158
HEROKU_TOKEN: ${{ secrets.HEROKU_TOKEN }}
159159
CURR_BRANCH: ${{ github.ref_name }}
@@ -167,10 +167,6 @@ jobs:
167167
- name: Set up Docker Buildx
168168
uses: docker/setup-buildx-action@v2
169169

170-
- name: Run Docker Login
171-
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
172-
run: docker login --username =_ --password=$HEROKU_TOKEN registry.heroku.com
173-
174170
- name: Identify Heroku App Name
175171
shell: bash
176172
run:
@@ -190,11 +186,16 @@ jobs:
190186
heroku_app_name: ${{env.HEROKU_APP_NAME}}
191187
heroku_email: ${{secrets.HEROKU_EMAIL}}
192188

189+
- name: Run Docker Login
190+
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}
191+
run: docker login --username=_ --password=$HEROKU_TOKEN registry.heroku.com
192+
193193
- name: Extract Deployment Env
194194
env:
195195
HEROKU_APP_NAME: ${{env.HEROKU_APP_NAME}}
196196
working-directory: dapp
197197
run: heroku config -s -a $HEROKU_APP_NAME > deploy.env
198+
198199
- name: Build and Push
199200
uses: docker/build-push-action@v3
200201
if: ${{ contains(fromJSON('["staging", "stable"]'), github.ref_name) }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
OUSD is a new kind of stablecoin that passively accrues yield while you are holding it.
44
Checkout our [docs](https://docs.ousd.com) for more details about the product.
55

6+
| Branch | CI/CD Status |
7+
| ------------- | ------------- |
8+
| `master` | [![OUSD](https://github.com/OriginProtocol/origin-dollar/actions/workflows/ousd.yml/badge.svg)](https://github.com/OriginProtocol/origin-dollar/actions/workflows/ousd.yml) |
9+
| `staging` | [![OUSD](https://github.com/OriginProtocol/origin-dollar/actions/workflows/ousd.yml/badge.svg?branch=staging)](https://github.com/OriginProtocol/origin-dollar/actions/workflows/ousd.yml?query=branch%3Astaging) |
10+
| `stable` | [![OUSD](https://github.com/OriginProtocol/origin-dollar/actions/workflows/ousd.yml/badge.svg?branch=stable)](https://github.com/OriginProtocol/origin-dollar/actions/workflows/ousd.yml?query=branch%3Astable) |
11+
612
## Requirements
713
- Node Version
814
- `^8.11.2 >= node <=^14.0.0`

0 commit comments

Comments
 (0)