Skip to content

Commit 5dbc743

Browse files
authored
Update release.yml - add dockerhub images
1 parent d2e854a commit 5dbc743

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/release.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ jobs:
5959
- name: Push images
6060
run: docker image push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_UI }}:${{ env.RELEASE_VERSION }}
6161

62+
- name: Log into dockerhub registry https://hub.docker.com/
63+
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
64+
with:
65+
registry: hub.docker.com
66+
username: ${{ secrets.DOCKERHUB_USER }}
67+
password: ${{ secrets.DOCKERHUB_TOKEN }}
68+
69+
- name: tag images for dockerhub
70+
run: docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_UI }}:${{ env.RELEASE_VERSION }} niemen/atlas-ui:${{ env.RELEASE_VERSION }}
71+
72+
- name: Push images to dockerhub
73+
run: docker image push niemen/atlas-ui:${{ env.RELEASE_VERSION }}
74+
6275
- name: Package Helm chart
6376
if: ${{ env.LATEST_RELEASE }} == "true"
6477
env:
@@ -132,6 +145,19 @@ jobs:
132145
- name: Push images
133146
run: docker image push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_GQL }}:${{ env.RELEASE_VERSION }}
134147

148+
- name: Log into dockerhub registry https://hub.docker.com/
149+
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
150+
with:
151+
registry: hub.docker.com
152+
username: ${{ secrets.DOCKERHUB_USER }}
153+
password: ${{ secrets.DOCKERHUB_TOKEN }}
154+
155+
- name: tag images for dockerhub
156+
run: docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_GQL }}:${{ env.RELEASE_VERSION }} niemen/atlas-gql:${{ env.RELEASE_VERSION }}
157+
158+
- name: Push images to dockerhub
159+
run: docker image push niemen/atlas-gql:${{ env.RELEASE_VERSION }}
160+
135161
- name: Package Helm chart
136162
if: ${{ env.LATEST_RELEASE }} == "true"
137163
env:
@@ -163,4 +189,4 @@ jobs:
163189
git config --global user.name "github-actions"
164190
git add --all
165191
git commit -m "Atlas release GQL - ${{ env.RELEASE_VERSION }}"
166-
git push
192+
git push

0 commit comments

Comments
 (0)