chore: add ghcr
This commit is contained in:
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@ -26,12 +26,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Docker Login
|
- name: dockerhub-login
|
||||||
env:
|
uses: docker/login-action@v1
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
with:
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
run: |
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
|
||||||
|
- name: ghcr-login
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: traefiker
|
||||||
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
@ -51,6 +51,22 @@ docker_manifests:
|
|||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||||
|
|
||||||
|
- name_template: 'ghcr.io/traefik/whoami:{{ .Tag }}'
|
||||||
|
image_templates:
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-amd64'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-arm64'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-armv7'
|
||||||
|
- name_template: 'ghcr.io/traefik/whoami:latest'
|
||||||
|
image_templates:
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-amd64'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-arm64'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-armv7'
|
||||||
|
- name_template: 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}'
|
||||||
|
image_templates:
|
||||||
|
- 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
||||||
|
- 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||||
|
- 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||||
|
|
||||||
dockers:
|
dockers:
|
||||||
- use: buildx
|
- use: buildx
|
||||||
goos: linux
|
goos: linux
|
||||||
@ -60,6 +76,9 @@ dockers:
|
|||||||
- 'traefik/whoami:latest-amd64'
|
- 'traefik/whoami:latest-amd64'
|
||||||
- 'traefik/whoami:{{ .Tag }}-amd64'
|
- 'traefik/whoami:{{ .Tag }}-amd64'
|
||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
||||||
|
- 'ghcr.io/traefik/whoami:latest-amd64'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-amd64'
|
||||||
|
- 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}-amd64'
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- '--pull'
|
- '--pull'
|
||||||
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
||||||
@ -81,6 +100,9 @@ dockers:
|
|||||||
- 'traefik/whoami:latest-arm64'
|
- 'traefik/whoami:latest-arm64'
|
||||||
- 'traefik/whoami:{{ .Tag }}-arm64'
|
- 'traefik/whoami:{{ .Tag }}-arm64'
|
||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||||
|
- 'ghcr.io/traefik/whoami:latest-arm64'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-arm64'
|
||||||
|
- 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}-arm64'
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- '--pull'
|
- '--pull'
|
||||||
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
||||||
@ -103,6 +125,9 @@ dockers:
|
|||||||
- 'traefik/whoami:latest-armv7'
|
- 'traefik/whoami:latest-armv7'
|
||||||
- 'traefik/whoami:{{ .Tag }}-armv7'
|
- 'traefik/whoami:{{ .Tag }}-armv7'
|
||||||
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
- 'traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||||
|
- 'ghcr.io/traefik/whoami:latest-armv7'
|
||||||
|
- 'ghcr.io/traefik/whoami:{{ .Tag }}-armv7'
|
||||||
|
- 'ghcr.io/traefik/whoami:v{{ .Major }}.{{ .Minor }}-armv7'
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- '--pull'
|
- '--pull'
|
||||||
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
|
||||||
|
Reference in New Issue
Block a user