Skip to content

Commit

Permalink
chore: Publish Docker images to public ECR (#291)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Pacak <[email protected]>
  • Loading branch information
krol3 and danielpacak authored Jan 4, 2021
1 parent 5196bb0 commit aefc490
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
go-version: 1.15
- name: Checkout code
uses: actions/checkout@v2
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
- name: Vendor Go modules
run: go mod vendor
- name: Verify generated code
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/manual-ecr-publish.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
- name: Log in to docker.io registry
run: |
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login docker.io --username ${{ secrets.DOCKERHUB_USER }} --password-stdin
- name: Login to ECR
uses: docker/login-action@v1
with:
registry: public.ecr.aws
username: ${{ secrets.ECR_ACCESS_KEY_ID }}
password: ${{ secrets.ECR_SECRET_ACCESS_KEY }}
- name: Release
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -46,5 +52,6 @@ jobs:
if: ${{ always() }}
run: |
docker logout docker.io
docker logout public.ecr.aws
- name: Update new version for plugin 'starboard' in krew-index
uses: rajatjindal/[email protected]
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ dockers:
- dockerfile: build/starboard/Dockerfile
image_templates:
- "docker.io/aquasec/starboard:{{ .Version }}"
- "public.ecr.aws/aquasecurity/starboard:{{ .Version }}"
binaries:
- starboard
build_flag_templates:
Expand All @@ -69,6 +70,7 @@ dockers:
- dockerfile: build/starboard-operator/Dockerfile
image_templates:
- "docker.io/aquasec/starboard-operator:{{ .Version }}"
- "public.ecr.aws/aquasecurity/starboard-operator:{{ .Version }}"
binaries:
- starboard-operator
build_flag_templates:
Expand All @@ -83,6 +85,7 @@ dockers:
- dockerfile: build/scanner-aqua/Dockerfile
image_templates:
- "docker.io/aquasec/starboard-scanner-aqua:{{ .Version }}"
- "public.ecr.aws/aquasecurity/starboard-scanner-aqua:{{ .Version }}"
binaries:
- starboard-scanner-aqua
build_flag_templates:
Expand Down
11 changes: 11 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
extends: default

rules:
line-length: disable
truthy: disable
document-start: disable

ignore: |
/deploy/
.krew.yaml

0 comments on commit aefc490

Please sign in to comment.