Skip to content

Commit 5c3077b

Browse files
committed
feat: mirror to docker hub
1 parent 1dfc574 commit 5c3077b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ jobs:
7575
registry: ghcr.io
7676
username: ${{ github.repository_owner }}
7777
password: ${{ secrets.PERSONAL_TOKEN }}
78+
-
79+
name: Login to Docker Hub
80+
uses: docker/login-action@v2
81+
with:
82+
username: ${{ secrets.DOCKERHUB_USERNAME }}
83+
password: ${{ secrets.DOCKERHUB_TOKEN }}
7884
- id: docker-tag
7985
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
8086
- name: Install semantic-release-cargo
@@ -98,6 +104,7 @@ jobs:
98104
platforms: linux/amd64,linux/arm64,linux/arm
99105
push: true
100106
tags: |
107+
sarendsen/replex:latest
101108
ghcr.io/sarendsen/replex:latest
102109
- name: Build nginx images
103110
uses: docker/build-push-action@v4
@@ -107,7 +114,8 @@ jobs:
107114
platforms: linux/amd64,linux/arm64,linux/arm
108115
push: true
109116
tags: |
110-
ghcr.io/sarendsen/replex-nginx:latest
117+
sarendsen/replex:nginx-latest
118+
ghcr.io/sarendsen/replex:nginx-latest
111119
- name: Invoke semantic-release
112120
if: ${{ !inputs.images_only }}
113121
env:

0 commit comments

Comments
 (0)