chore(image): push the official image to GitHub Container Registry as well (#627)

This commit is contained in:
Teppei Fukuda
2020-09-08 15:06:32 +03:00
committed by GitHub
parent 5e308da81a
commit 1d3f70e07f
2 changed files with 6 additions and 1 deletions

View File

@@ -36,8 +36,11 @@ jobs:
- setup_remote_docker:
version: 18.06.0-ce
- run:
name: setup docker
name: login to Docker Hub
command: echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin
- run:
name: login to GitHub Container Registry
command: echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_USER --password-stdin
- run:
name: Release
command: goreleaser --rm-dist

View File

@@ -81,6 +81,8 @@ dockers:
- image_templates:
- "docker.io/aquasec/trivy:{{ .Version }}"
- "docker.io/aquasec/trivy:latest"
- "ghcr.io/aquasecurity/trivy:{{ .Version }}"
- "ghcr.io/aquasecurity/trivy:latest"
binaries:
- trivy
build_flag_templates: