diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cdbfb0ea5..23b2b4790 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -181,6 +181,12 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: login to Aqua Container Registry + uses: azure/docker-login@v2 + with: + login-server: ${{ secrets.AQUSEC_ACR_REGISTRY_NAME }} + username: ${{ secrets.AQUASEC_ACR_USERNAME }} + password: ${{ secrets.AQUASEC_ACR_PASSWORD }} - name: Release uses: goreleaser/goreleaser-action@v3 with: @@ -188,6 +194,7 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + AQUSEC_ACR_REGISTRY_NAME: ${{ secrets.AQUSEC_ACR_REGISTRY_NAME }} # - name: Update new version for plugin 'starboard' in krew-index # uses: rajatjindal/krew-release-bot@v0.0.43 - name: Cleanup Docker and KIND resources diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 523906802..cd67afbce 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -94,6 +94,7 @@ changelog: dockers: - image_templates: - "docker.io/aquasec/starboard:{{ .Version }}-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard:{{ .Version }}-amd64" use: buildx goos: linux dockerfile: build/starboard/Dockerfile @@ -112,6 +113,7 @@ dockers: - "--platform=linux/amd64" - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-amd64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile @@ -150,6 +152,7 @@ dockers: # - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-amd64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.ubi9 @@ -170,6 +173,7 @@ dockers: - LICENSE - image_templates: - "docker.io/aquasec/starboard-scanner-aqua:{{ .Version }}-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-scanner-aqua:{{ .Version }}-amd64" use: buildx goos: linux dockerfile: build/scanner-aqua/Dockerfile @@ -188,6 +192,7 @@ dockers: - "--platform=linux/amd64" - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-arm64" + - "docker.io/aquasec/starboard-operator:{{ .Version }}-arm64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile @@ -226,6 +231,7 @@ dockers: # - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-arm64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.ubi9 @@ -246,6 +252,7 @@ dockers: - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-s390x" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile @@ -264,6 +271,7 @@ dockers: - "--platform=linux/s390x" - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ppc64le" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ppc64le" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile @@ -302,6 +310,7 @@ dockers: # - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-s390x" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.ubi9 @@ -342,6 +351,7 @@ dockers: # - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-ppc64le" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-ppc64le" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.ubi9 @@ -382,6 +392,7 @@ dockers: # - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-fips-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-amd64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips.ubi9 @@ -462,6 +473,7 @@ dockers: # - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-fips-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-amd64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips.ubi9 @@ -482,6 +494,7 @@ dockers: - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-fips-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-arm64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips.ubi9 @@ -502,6 +515,7 @@ dockers: - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-fips-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-s390x" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips.ubi9 @@ -522,6 +536,7 @@ dockers: - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-ubi9-fips-ppc64le" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-ppc64le" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips.ubi9 @@ -542,6 +557,7 @@ dockers: - LICENSE - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-fips-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-amd64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips @@ -560,6 +576,7 @@ dockers: - "--platform=linux/amd64" - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-fips-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-arm64" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips @@ -578,6 +595,7 @@ dockers: - "--platform=linux/arm64" - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-fips-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-s390x" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips @@ -596,6 +614,7 @@ dockers: - "--platform=linux/s390x" - image_templates: - "docker.io/aquasec/starboard-operator:{{ .Version }}-fips-ppc64le" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-ppc64le" use: buildx goos: linux dockerfile: build/starboard-operator/Dockerfile.fips @@ -655,3 +674,35 @@ docker_manifests: - name_template: "aquasec/starboard-scanner-aqua:{{ .Version }}" image_templates: - "aquasec/starboard-scanner-aqua:{{ .Version }}-amd64" + + # Aqua container registry + - name_template: "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard:{{ .Version }}" + image_templates: + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard:{{ .Version }}-amd64" + - name_template: "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}" + image_templates: + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ppc64le" + - name_template: "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips" + image_templates: + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-fips-ppc64le" + - name_template: "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9" + image_templates: + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-ppc64le" + - name_template: "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips" + image_templates: + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-amd64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-arm64" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-s390x" + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-operator:{{ .Version }}-ubi9-fips-ppc64le" + - name_template: "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-scanner-aqua:{{ .Version }}" + image_templates: + - "{{ .Env.AQUSEC_ACR_REGISTRY_NAME }}/starboard-scanner-aqua:{{ .Version }}-amd64"