Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit f1fd5e1

Browse files
committed
changed registry
1 parent c2f7b31 commit f1fd5e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create new Docker-Image and Deploy
1+
name: Deploy Docker Image
22

33
on:
44
workflow_dispatch:
@@ -26,16 +26,16 @@ jobs:
2626
- name: build image with docker
2727
run: mvn spring-boot:build-image -f pom.xml
2828

29-
- name: Log into GitHub Container Registry
29+
- name: Log into DockerHub Registry
3030
# 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
3232

33-
- name: Push image to GitHub Container Registry
33+
- name: Push image to DockerHub Registr
3434
run: |
3535
IMAGE_ID=$(docker images $IMAGE_NAME -q)
3636
3737
echo IMAGE_ID=$IMAGE_ID
3838
echo VERSION=$VERSION
3939
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

0 commit comments

Comments
 (0)