Skip to content

Commit

Permalink
Push launcher images to GAR (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
petechd authored Feb 17, 2022
1 parent c61a541 commit f637bb1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build
run: >
docker build -t onsdigital/eq-questionnaire-launcher:$TAG
-t eu.gcr.io/${{ secrets.GCR_PROJECT_ID }}/eq-questionnaire-launcher:$TAG .
-t eu.gcr.io/${{ secrets.GCR_PROJECT_ID }}/eq-questionnaire-launcher:$TAG -t ${{ secrets.GAR_LOCATION }}/${{ secrets.GAR_PROJECT_ID }}/docker-images/eq-questionnaire-launcher:$TAG .
- name: Push to Docker Hub
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
Expand All @@ -46,5 +46,14 @@ jobs:
GCR_SERVICE_KEY: ${{ secrets.GCR_SERVICE_KEY }}
run: |
echo $GCR_SERVICE_KEY | docker login -u _json_key --password-stdin https://eu.gcr.io
echo "Pushing with tag [$TAG]"
echo "Pushing with tag $TAG"
docker push eu.gcr.io/${{ secrets.GCR_PROJECT_ID }}/eq-questionnaire-launcher:$TAG
- name: Push to GAR
env:
GAR_SERVICE_KEY: ${{ secrets.GAR_SERVICE_KEY }}
run: |
echo $GAR_SERVICE_KEY | docker login -u _json_key --password-stdin https://${{ secrets.GAR_LOCATION }}
gcloud auth configure-docker ${{ secrets.GAR_LOCATION }}
echo "Pushing to GAR with tag $TAG"
docker push ${{ secrets.GAR_LOCATION }}/${{ secrets.GAR_PROJECT_ID }}/docker-images/eq-questionnaire-launcher:$TAG

0 comments on commit f637bb1

Please sign in to comment.