1- name : publish-latest -image
1+ name : publish-test -image
22
33on :
44 workflow_dispatch :
@@ -11,7 +11,7 @@ permissions:
1111 packages : write
1212
1313jobs :
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"
0 commit comments