mirror of https://github.com/artifacthub/hub.git
Publish Docker images to ECR Public Gallery (#1541)
Closes #1510 Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
parent
6d106495e6
commit
db05f2a8b8
|
|
@ -226,7 +226,7 @@ jobs:
|
|||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-east-2
|
||||
- name: Login to Amazon ECR
|
||||
- name: Login to AWS ECR
|
||||
id: login-ecr
|
||||
uses: aws-actions/amazon-ecr-login@v1
|
||||
- name: Build, tag and push hub image
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Login to AWS Public ECR
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: public.ecr.aws
|
||||
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
- name: Release Docker images and CLI tool binaries
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ dockers:
|
|||
image_templates:
|
||||
- "artifacthub/ah:{{ .Tag }}"
|
||||
- "artifacthub/ah:latest"
|
||||
- "public.ecr.aws/artifacthub/ah:{{ .Tag }}"
|
||||
- "public.ecr.aws/artifacthub/ah:latest"
|
||||
build_flag_templates:
|
||||
- "--build-arg=VERSION={{ .Version }}"
|
||||
- "--build-arg=GIT_COMMIT={{ .FullCommit }}"
|
||||
|
|
@ -56,12 +58,16 @@ dockers:
|
|||
image_templates:
|
||||
- "artifacthub/db-migrator:{{ .Tag }}"
|
||||
- "artifacthub/db-migrator:latest"
|
||||
- "public.ecr.aws/artifacthub/db-migrator:{{ .Tag }}"
|
||||
- "public.ecr.aws/artifacthub/db-migrator:latest"
|
||||
extra_files:
|
||||
- database/migrations
|
||||
- dockerfile: cmd/hub/Dockerfile
|
||||
image_templates:
|
||||
- "artifacthub/hub:{{ .Tag }}"
|
||||
- "artifacthub/hub:latest"
|
||||
- "public.ecr.aws/artifacthub/hub:{{ .Tag }}"
|
||||
- "public.ecr.aws/artifacthub/hub:latest"
|
||||
extra_files:
|
||||
- go.mod
|
||||
- go.sum
|
||||
|
|
@ -75,6 +81,8 @@ dockers:
|
|||
image_templates:
|
||||
- "artifacthub/scanner:{{ .Tag }}"
|
||||
- "artifacthub/scanner:latest"
|
||||
- "public.ecr.aws/artifacthub/scanner:{{ .Tag }}"
|
||||
- "public.ecr.aws/artifacthub/scanner:latest"
|
||||
extra_files:
|
||||
- go.mod
|
||||
- go.sum
|
||||
|
|
@ -84,6 +92,8 @@ dockers:
|
|||
image_templates:
|
||||
- "artifacthub/tracker:{{ .Tag }}"
|
||||
- "artifacthub/tracker:latest"
|
||||
- "public.ecr.aws/artifacthub/tracker:{{ .Tag }}"
|
||||
- "public.ecr.aws/artifacthub/tracker:latest"
|
||||
extra_files:
|
||||
- go.mod
|
||||
- go.sum
|
||||
|
|
|
|||
Loading…
Reference in New Issue