Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVOPS-499: Add push to aquasec Azure reg upon Starboard releases #1404

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,20 @@ 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:
version: v1.7.0
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/[email protected]
- name: Cleanup Docker and KIND resources
Expand Down
51 changes: 51 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Loading