10BC0 Add automatic push to GCP Marketplace · nginx/kubernetes-ingress@f272621 · GitHub
[go: up one dir, main page]

Skip to content

Commit f272621

Browse files
committed
Add automatic push to GCP Marketplace
1 parent 27ec53d commit f272621

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build-plus.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,23 @@ jobs:
7171
password: ${{ steps.auth.outputs.access_token }}
7272
if: github.event_name != 'pull_request'
7373

74+
- name: Authenticate to Google Cloud Marketplace
75+
id: auth-mktpl
76+
uses: google-github-actions/auth@67e9c72af6e0492df856527b474995862b7b6591 # v2.0.0
77+
with:
78+
token_format: access_token
79+
workload_identity_provider: ${{ secrets.GCR_WORKLOAD_IDENTITY_MKTPL }}
80+
service_account: ${{ secrets.GCR_SERVICE_ACCOUNT_MKTPL }}
81+
if: github.ref_type == 'tag' && ! contains(inputs.target, 'aws')
82+
83+
- name: Login to GCR for Marketplace
84+
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
85+
with:
86+
registry: gcr.io
87+
username: oauth2accesstoken
88+
password: ${{ steps.auth-mktpl.outputs.access_token }}
89+
if: github.ref_type == 'tag' && ! contains(inputs.target, 'aws')
90+
7491
- name: Configure AWS Credentials
7592
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
7693
with:
@@ -107,6 +124,7 @@ jobs:
107124
with:
108125
images: |
109126
name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev/nginx-ic${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }}/nginx-plus-ingress
127+
name=gcr.io/f5-7626-networks-public/nginxinc/nginx-plus-ingress${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }}${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }},enable=${{ github.ref_type == 'tag' && ! contains(inputs.target, 'aws') && ! contains(inputs.image, 'alpine') && ! contains(inputs.image, 'ubi') }}
110128
name=docker-mgmt.nginx.com/nginx-ic${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }}${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}/nginx-plus-ingress,enable=${{ github.ref_type != 'pull_request' && ! startsWith(github.ref, 'refs/heads/release-') && ! contains(inputs.target, 'aws') }}
111129
name=709825985650.dkr.ecr.us-east-1.amazonaws.com/nginx/nginx-plus-ingress${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }},enable=${{ github.ref_type == 'tag' && contains(inputs.target, 'aws') }}
112130
flavor: |

0 commit comments

Comments
 (0)
0