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:
9
.github/workflows/draft_release.yml
vendored
9
.github/workflows/draft_release.yml
vendored
@ -9,6 +9,8 @@ jobs:
|
|||||||
draft_release:
|
draft_release:
|
||||||
name: draft release
|
name: draft release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@ -22,6 +24,13 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
|
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
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -120,12 +120,23 @@ docker_manifests:
|
|||||||
- *amd_image
|
- *amd_image
|
||||||
- *386_image
|
- *386_image
|
||||||
- *arm_image
|
- *arm_image
|
||||||
|
- name_template: "gcr.io/stackexchange/{{.ProjectName}}:{{ .Version }}"
|
||||||
|
image_templates:
|
||||||
|
- *amd_image
|
||||||
|
- *386_image
|
||||||
|
- *arm_image
|
||||||
- name_template: "stackexchange/{{.ProjectName}}:latest"
|
- name_template: "stackexchange/{{.ProjectName}}:latest"
|
||||||
skip_push: auto
|
skip_push: auto
|
||||||
image_templates:
|
image_templates:
|
||||||
- *amd_image
|
- *amd_image
|
||||||
- *386_image
|
- *386_image
|
||||||
- *arm_image
|
- *arm_image
|
||||||
|
- name_template: "gcr.io/stackexchange/{{.ProjectName}}:latest"
|
||||||
|
skip_push: auto
|
||||||
|
image_templates:
|
||||||
|
- *amd_image
|
||||||
|
- *386_image
|
||||||
|
- *arm_image
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
snapshot:
|
snapshot:
|
||||||
|
Reference in New Issue
Block a user