File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,21 @@ jobs:
26
26
with :
27
27
username : ${{ secrets.DOCKERHUB_USERNAME }}
28
28
password : ${{ secrets.DOCKERHUB_TOKEN }}
29
+ - name : Login to Google Container Registry
30
+ shell : bash
31
+ run : |
32
+ docker login -u _json_key -p '${{ secrets.GCP_SERVICE_ACCOUNT }}' 'https://gcr.io' 2>/dev/null
33
+ docker tag '${{ inputs.source_image }}' '${{ inputs.destination_image }}'
34
+ docker push '${{ inputs.destination_image }}'
35
+ echo "Successfully pushed ${{ inputs.source_image }} to ${{ inputs.destination_image }}"
29
36
-
30
37
name : Build and push to dockerhub
31
38
uses : docker/build-push-action@v3
32
39
with :
33
40
push : true
34
- tags : ctomkow/jsonparse:${{ github.ref_name }},ctomkow/jsonparse:latest
35
41
build-args : VERSION=${{ github.ref_name }}
36
- -
37
- name : push to google compute registry
38
- uses : Dayanand-Chinchure/gcr-upload-action@1.2
39
- with :
40
- service_account : ${{ secrets.GCP_SERVICE_ACCOUNT }}
41
- source_image : ctomkow/jsonparse:${{ github.ref_name }}
42
- destination_image : gcr.io/jsonparse-363219/ctomkow/jsonparse:${{ github.ref_name }}
42
+ tags : |
43
+ ctomkow/jsonparse:${{ github.ref_name }}
44
+ ctomkow/jsonparse:latest
45
+ gcr.io/jsonparse-363219/ctomkow/jsonparse:${{ github.ref_name }}
46
+ gcr.io/jsonparse-363219/ctomkow/jsonparse:latest
You can’t perform that action at this time.
0 commit comments