Skip to content

Commit

Permalink
fix: make push rdev use happy go client (#336)
Browse files Browse the repository at this point in the history
* fix push rdev with happy go client

* resolve suggestions

Co-authored-by: atarashansky <[email protected]>
  • Loading branch information
atarashansky and atarashansky authored Jul 24, 2022
1 parent c238e99 commit 1b10f5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/push-rdev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ env:
jobs:
build-push-images:
runs-on: ubuntu-20.04
strategy:
matrix:
component: ['explorer']
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -38,13 +35,15 @@ jobs:
with:
registry: ${{ secrets.ECR_REPO }}
- uses: actions/checkout@v2
- name: Install happy
uses: chanzuckerberg/github-actions/.github/actions/[email protected]
with:
happy_version: "0.25.0"
- name: Build component
shell: bash
run: |
pip install -r .happy/requirements.txt
# set tag from GITHUB_REF, but removing `refs/heads/` prefix
DOCKER_TAG=${GITHUB_REF#refs/heads/}
DOCKER_TAG=${DOCKER_TAG#refs/tags/}
# replace `/` with `_`
DOCKER_TAG=${DOCKER_TAG//\//-}
scripts/happy --profile="" push --stack-name ${DOCKER_TAG} --extra-tag sha-${GITHUB_SHA:0:8} --extra-tag build-${GITHUB_RUN_NUMBER} ${{ matrix.component }}
# replace `/` with `_`
DOCKER_TAG=${DOCKER_TAG//\//-}
happy push --aws-profile "" --tag sha-${GITHUB_SHA:0:8} --tag ${DOCKER_TAG}
4 changes: 0 additions & 4 deletions .happy/requirements.txt

This file was deleted.

0 comments on commit 1b10f5e

Please sign in to comment.