Skip to content

Commit 91e6c4f

Browse files
committed
Switch to temporaliotest on dockerhub for latest images.
This pushes an image for every push to main.
1 parent df5d4e8 commit 91e6c4f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/publish-latest-image.yml renamed to .github/workflows/publish-test-image.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish-latest-image
1+
name: publish-test-image
22

33
on:
44
workflow_dispatch:
@@ -11,7 +11,7 @@ permissions:
1111
packages: write
1212

1313
jobs:
14-
publish-latest-image:
14+
publish-test-image:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
@@ -28,25 +28,25 @@ jobs:
2828
- name: Set up Docker Buildx
2929
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
3030

31-
- name: Login to GitHub Container Registry
31+
- name: Login to Docker Hub
3232
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
3333
with:
34-
registry: ghcr.io
35-
username: ${{ github.actor }}
36-
password: ${{ secrets.GITHUB_TOKEN }}
34+
registry: docker.io
35+
username: ${{ secrets.DOCKER_USERNAME }}
36+
password: ${{ secrets.DOCKER_PAT}}
3737

3838
- name: Run GoReleaser
3939
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
4040
with:
4141
version: v2.11.2
42-
args: release --config .goreleaser.latest.yml --snapshot --clean
42+
args: release --config .goreleaser.test.yml --snapshot --clean
4343

4444
- name: Push snapshot images
4545
run: |
46-
docker push "ghcr.io/${GITHUB_REPOSITORY}:latest-amd64"
47-
docker push "ghcr.io/${GITHUB_REPOSITORY}:latest-arm64"
46+
docker push "temporaliotest/temporal-worker-controller:latest-amd64"
47+
docker push "temporaliotest/temporal-worker-controller:latest-arm64"
4848
4949
- name: Create and push manifest for :latest tag
5050
run: |
51-
docker manifest create "ghcr.io/${GITHUB_REPOSITORY}:latest" "ghcr.io/${GITHUB_REPOSITORY}:latest-amd64" "ghcr.io/${GITHUB_REPOSITORY}:latest-arm64"
52-
docker manifest push "ghcr.io/${GITHUB_REPOSITORY}:latest"
51+
docker manifest create "temporaliotest/temporal-worker-controller:latest" "temporaliotest/temporal-worker-controller:latest-amd64" "temporaliotest/temporal-worker-controller:latest-arm64"
52+
docker manifest push "temporaliotest/temporal-worker-controller:latest"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ checksum:
3636
# Only build Docker images with 'latest' tag
3737
dockers:
3838
- image_templates:
39-
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest-amd64"
39+
- "temporaliotest/temporal-worker-controller:latest-amd64"
4040
dockerfile: Dockerfile.goreleaser
4141
use: buildx
4242
build_flag_templates:
@@ -53,7 +53,7 @@ dockers:
5353
- LICENSE
5454

5555
- image_templates:
56-
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest-arm64"
56+
- "temporaliotest/temporal-worker-controller:latest-arm64"
5757
dockerfile: Dockerfile.goreleaser
5858
use: buildx
5959
build_flag_templates:
@@ -70,7 +70,7 @@ dockers:
7070
- LICENSE
7171

7272
docker_manifests:
73-
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest"
73+
- name_template: "temporaliotest/temporal-worker-controller:latest"
7474
image_templates:
75-
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest-amd64"
76-
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest-arm64"
75+
- "temporaliotest/temporal-worker-controller:latest-amd64"
76+
- "temporaliotest/temporal-worker-controller:latest-arm64"

0 commit comments

Comments
 (0)