diff --git a/.github/workflows/draft_release.yml b/.github/workflows/draft_release.yml index b5655738d..4a03f36ff 100644 --- a/.github/workflows/draft_release.yml +++ b/.github/workflows/draft_release.yml @@ -9,6 +9,8 @@ jobs: draft_release: name: draft release runs-on: ubuntu-latest + permissions: + packages: write steps: - name: Checkout repo @@ -22,6 +24,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Go uses: actions/setup-go@v4 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 8ed5b59bc..f7535e4ec 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -120,12 +120,23 @@ docker_manifests: - *amd_image - *386_image - *arm_image + - name_template: "gcr.io/stackexchange/{{.ProjectName}}:{{ .Version }}" + image_templates: + - *amd_image + - *386_image + - *arm_image - name_template: "stackexchange/{{.ProjectName}}:latest" skip_push: auto image_templates: - *amd_image - *386_image - *arm_image + - name_template: "gcr.io/stackexchange/{{.ProjectName}}:latest" + skip_push: auto + image_templates: + - *amd_image + - *386_image + - *arm_image checksum: name_template: 'checksums.txt' snapshot: