Skip to content

Commit

Permalink
try this build hack
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed May 4, 2021
1 parent 3e160a7 commit e7a6e05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
run: |
docker build -t alephdata/aleph-ui-production:${GITHUB_SHA} -f ui/Dockerfile.production ui
- name: Push docker image (hash)
if: secrets.DOCKER_PASSWORD != null
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
if: env.DOCKER_PASSWORD != null
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
docker push alephdata/aleph-ui-production:${GITHUB_SHA}
Expand Down Expand Up @@ -51,7 +53,9 @@ jobs:
- name: Run aleph tests
run: make ALEPH_TAG=${GITHUB_SHA} test
- name: Push docker image (hash)
if: secrets.DOCKER_PASSWORD != null
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
if: env.DOCKER_PASSWORD != null
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
docker push alephdata/aleph:${GITHUB_SHA}
Expand Down

0 comments on commit e7a6e05

Please sign in to comment.