This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Create new Docker-Image and Deploy
1
+ name : Deploy Docker Image
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -26,16 +26,16 @@ jobs:
26
26
- name : build image with docker
27
27
run : mvn spring-boot:build-image -f pom.xml
28
28
29
- - name : Log into GitHub Container Registry
29
+ - name : Log into DockerHub Registry
30
30
# Secret with `read:packages` and `write:packages` scopes saved as `CR_PAT`
31
- run : echo "${{ secrets.DOCKER_PW }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
31
+ run : echo "${{ secrets.DOCKER_PW }}" | docker login -u filefighter --password-stdin
32
32
33
- - name : Push image to GitHub Container Registry
33
+ - name : Push image to DockerHub Registr
34
34
run : |
35
35
IMAGE_ID=$(docker images $IMAGE_NAME -q)
36
36
37
37
echo IMAGE_ID=$IMAGE_ID
38
38
echo VERSION=$VERSION
39
39
40
- docker tag $IMAGE_ID docker.pkg.github.com/ filefighter/restapi /$IMAGE_NAME:$VERSION
41
- docker push docker.pkg.github.com/ filefighter/restapi /$IMAGE_NAME:$VERSION
40
+ docker tag $IMAGE_ID filefighter/$IMAGE_NAME:$VERSION
41
+ docker push filefighter/$IMAGE_NAME:$VERSION
You can’t perform that action at this time.
0 commit comments