|
12 | 12 | target:
|
13 | 13 | required: true
|
14 | 14 | type: string
|
| 15 | + go_md5: |
| 16 | + required: true |
| 17 | + type: string |
15 | 18 | nap_modules:
|
16 | 19 | required: false
|
17 | 20 | type: string
|
|
43 | 46 | uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
|
44 | 47 | with:
|
45 | 48 | path: ${{ github.workspace }}/dist
|
46 |
| - key: nginx-ingress-${{ github.run_id }}-${{ github.run_number }} |
| 49 | + key: nginx-ingress-${{ inputs.go_md5 }} |
47 | 50 |
|
48 | 51 | - name: Setup QEMU
|
49 | 52 | uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
|
|
71 | 74 | password: ${{ steps.auth.outputs.access_token }}
|
72 | 75 | if: github.event_name != 'pull_request'
|
73 | 76 |
|
| 77 | + - name: Authenticate to Google Cloud Marketplace |
| 78 | + id: auth-mktpl |
| 79 | + uses: google-github-actions/auth@67e9c72af6e0492df856527b474995862b7b6591 # v2.0.0 |
| 80 | + with: |
| 81 | + token_format: access_token |
| 82 | + workload_identity_provider: ${{ secrets.GCR_WORKLOAD_IDENTITY_MKTPL }} |
| 83 | + service_account: ${{ secrets.GCR_SERVICE_ACCOUNT_MKTPL }} |
| 84 | + if: github.ref_type == 'tag' && ! contains(inputs.target, 'aws') |
| 85 | + |
| 86 | + - name: Login to GCR for Marketplace |
| 87 | + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 |
| 88 | + with: |
| 89 | + registry: gcr.io |
| 90 | + username: oauth2accesstoken |
| 91 | + password: ${{ steps.auth-mktpl.outputs.access_token }} |
| 92 | + if: github.ref_type == 'tag' && ! contains(inputs.target, 'aws') |
| 93 | + |
74 | 94 | - name: Configure AWS Credentials
|
75 | 95 | uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
|
76 | 96 | with:
|
@@ -107,6 +127,7 @@ jobs:
|
107 | 127 | with:
|
108 | 128 | images: |
|
109 | 129 | 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
|
| 130 | + 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 | 131 | 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 | 132 | 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 | 133 | flavor: |
|
|
0 commit comments