Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install eget
run: go install github.com/zyedidia/eget@latest
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: goreleaser

on:
workflow_dispatch:
push:
tags:
- 'v*'
Expand Down Expand Up @@ -31,6 +32,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install eget
run: go install github.com/zyedidia/eget@latest
env:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish snapshot to docker hub

on:
workflow_dispatch:
push:
branches:
- master
Expand Down Expand Up @@ -30,6 +31,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Install eget
run: go install github.com/zyedidia/eget@latest
env:
Expand All @@ -44,6 +52,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to DockerHub
shell: bash
run: |
docker push creativeprojects/resticprofile:nightly-arm64v8
docker push creativeprojects/resticprofile:nightly-amd64
Expand All @@ -53,4 +62,13 @@ jobs:
docker manifest inspect "creativeprojects/resticprofile:nightly"
docker manifest push "creativeprojects/resticprofile:nightly"

- name: Publish to GitHub Container Registry
shell: bash
run: |
docker push ghcr.io/creativeprojects/resticprofile:nightly-arm64v8
docker push ghcr.io/creativeprojects/resticprofile:nightly-amd64
docker manifest create "ghcr.io/creativeprojects/resticprofile:nightly" \
--amend "ghcr.io/creativeprojects/resticprofile:nightly-amd64" \
--amend "ghcr.io/creativeprojects/resticprofile:nightly-arm64v8"
docker manifest inspect "ghcr.io/creativeprojects/resticprofile:nightly"
docker manifest push "ghcr.io/creativeprojects/resticprofile:nightly"
14 changes: 14 additions & 0 deletions .goreleaser-docker-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dockers:
- image_templates:
- "creativeprojects/resticprofile:latest-amd64"
- "creativeprojects/resticprofile:{{ .RawVersion }}-amd64"
- "ghcr.io/creativeprojects/resticprofile:latest-amd64"
- "ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-amd64"
ids:
- resticprofile_targz
use: buildx
Expand All @@ -52,6 +54,8 @@ dockers:
- image_templates:
- "creativeprojects/resticprofile:latest-arm64v8"
- "creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8"
- "ghcr.io/creativeprojects/resticprofile:latest-arm64v8"
- "ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8"
ids:
- resticprofile_targz
use: buildx
Expand Down Expand Up @@ -81,5 +85,15 @@ docker_manifests:
- creativeprojects/resticprofile:latest-amd64
- creativeprojects/resticprofile:latest-arm64v8

- name_template: ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}
image_templates:
- ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-amd64
- ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8

- name_template: ghcr.io/creativeprojects/resticprofile:latest
image_templates:
- ghcr.io/creativeprojects/resticprofile:latest-amd64
- ghcr.io/creativeprojects/resticprofile:latest-arm64v8

release:
disable: true
2 changes: 2 additions & 0 deletions .goreleaser-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ archives:
dockers:
- image_templates:
- "creativeprojects/resticprofile:nightly-amd64"
- "ghcr.io/creativeprojects/resticprofile:nightly-amd64"
ids:
- resticprofile_targz
use: buildx
Expand All @@ -49,6 +50,7 @@ dockers:
- "--build-arg=ARCH=amd64"
- image_templates:
- "creativeprojects/resticprofile:nightly-arm64v8"
- "ghcr.io/creativeprojects/resticprofile:nightly-arm64v8"
ids:
- resticprofile_targz
use: buildx
Expand Down
12 changes: 12 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ dockers:
- image_templates:
- "creativeprojects/resticprofile:latest-amd64"
- "creativeprojects/resticprofile:{{ .RawVersion }}-amd64"
- "ghcr.io/creativeprojects/resticprofile:latest-amd64"
- "ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-amd64"
ids:
- resticprofile_targz
use: buildx
Expand All @@ -154,6 +156,8 @@ dockers:
- image_templates:
- "creativeprojects/resticprofile:latest-arm64v8"
- "creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8"
- "ghcr.io/creativeprojects/resticprofile:latest-arm64v8"
- "ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8"
ids:
- resticprofile_targz
use: buildx
Expand Down Expand Up @@ -181,6 +185,14 @@ docker_manifests:
image_templates:
- creativeprojects/resticprofile:latest-amd64
- creativeprojects/resticprofile:latest-arm64v8
- name_template: ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}
image_templates:
- ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-amd64
- ghcr.io/creativeprojects/resticprofile:{{ .RawVersion }}-arm64v8
- name_template: ghcr.io/creativeprojects/resticprofile:latest
image_templates:
- ghcr.io/creativeprojects/resticprofile:latest-amd64
- ghcr.io/creativeprojects/resticprofile:latest-arm64v8

brews:
-
Expand Down