1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Also push container images to github / gcr.io (#2408)

Signed-off-by: Grant Slater <github@firefishy.com>
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Grant
2023-06-01 21:02:37 +01:00
committed by GitHub
parent c1777cf19c
commit f4ae37ffd6
2 changed files with 20 additions and 0 deletions

View File

@ -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:

View File

@ -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: