Skip to content

Commit

Permalink
chore: add ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Mar 16, 2023
1 parent 18ded60 commit 65f8f38
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ jobs:
with:
fetch-depth: 0

- name: Docker Login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: dockerhub-login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKER_USERNAME }}

- name: ghcr-login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: traefiker
password: ${{ secrets.GHCR_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
19 changes: 19 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ docker_manifests:
- 'traefik/aloba:v{{ .Major }}.{{ .Minor }}-amd64'
- 'traefik/aloba:v{{ .Major }}.{{ .Minor }}-arm64'

- name_template: 'ghcr.io/traefik/aloba:{{ .Tag }}'
image_templates:
- 'ghcr.io/traefik/aloba:{{ .Tag }}-amd64'
- 'ghcr.io/traefik/aloba:{{ .Tag }}-arm64'
- name_template: 'ghcr.io/traefik/aloba:latest'
image_templates:
- 'ghcr.io/traefik/aloba:{{ .Tag }}-amd64'
- 'ghcr.io/traefik/aloba:{{ .Tag }}-arm64'
- name_template: 'ghcr.io/traefik/aloba:v{{ .Major }}.{{ .Minor }}'
image_templates:
- 'ghcr.io/traefik/aloba:v{{ .Major }}.{{ .Minor }}-amd64'
- 'ghcr.io/traefik/aloba:v{{ .Major }}.{{ .Minor }}-arm64'

dockers:
- use: buildx
goos: linux
Expand All @@ -65,6 +78,9 @@ dockers:
- 'traefik/aloba:latest-amd64'
- 'traefik/aloba:{{ .Tag }}-amd64'
- 'traefik/aloba:v{{ .Major }}.{{ .Minor }}-amd64'
- 'ghcr.io/traefik/aloba:latest-amd64'
- 'ghcr.io/traefik/aloba:{{ .Tag }}-amd64'
- 'ghcr.io/traefik/aloba:v{{ .Major }}.{{ .Minor }}-amd64'
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.description=Add labels and milestone on pull requests and issues.'
Expand All @@ -83,6 +99,9 @@ dockers:
- 'traefik/aloba:latest-arm64'
- 'traefik/aloba:{{ .Tag }}-arm64'
- 'traefik/aloba:v{{ .Major }}.{{ .Minor }}-arm64'
- 'ghcr.io/traefik/aloba:latest-arm64'
- 'ghcr.io/traefik/aloba:{{ .Tag }}-arm64'
- 'ghcr.io/traefik/aloba:v{{ .Major }}.{{ .Minor }}-arm64'
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.description=Add labels and milestone on pull requests and issues.'
Expand Down

0 comments on commit 65f8f38

Please sign in to comment.