|
71 | 71 | password: ${{ steps.auth.outputs.access_token }}
|
72 | 72 | if: github.event_name != 'pull_request'
|
73 | 73 |
|
| 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 | + |
74 | 91 | - name: Configure AWS Credentials
|
75 | 92 | uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
|
76 | 93 | with:
|
@@ -107,6 +124,7 @@ jobs:
|
107 | 124 | with:
|
108 | 125 | images: |
|
109 | 126 | 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') }} |
110 | 128 | 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') }}
|
111 | 129 | 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') }}
|
112 | 130 | flavor: |
|
|
0 commit comments