File tree Expand file tree Collapse file tree 3 files changed +3
-29
lines changed Expand file tree Collapse file tree 3 files changed +3
-29
lines changed Original file line number Diff line number Diff line change 1
- name : Build and Publish
1
+ name : Build and Publish Container
2
2
3
3
on :
4
4
release :
32
32
run : docker tag my-storage-image docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
33
33
34
34
- name : Push Docker image to GitHub Packages
35
- run : docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
36
- deploy :
37
- runs-on : ubuntu-latest
38
-
39
- steps :
40
- - name : Install sshpass
41
- run : sudo apt-get install -y sshpass
42
-
43
- - name : SSH into Server and deploy
44
- run : |
45
- sshpass -p ${{ secrets.SERVER_PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }} '
46
- cd my-routine/my-storage &&
47
- git pull origin master
48
- '
49
- # publish:
50
- # runs-on: ubuntu-latest
51
- #
52
- # steps:
53
- # - name: Log into GitHub Packages
54
- # run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin
55
- #
56
- # - name: Tag Docker image
57
- # run: docker tag my-storage-image:latest docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
58
- #
59
- # - name: Push Docker image to GitHub Packages
60
- # run: docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
35
+ run : docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ENV SPRING_PROFILES_ACTIVE=prod
4
4
5
5
WORKDIR /app
6
6
7
- COPY /api-webmvc /target/api-webmvc *.jar /app/my-storage.jar
7
+ COPY /app /target/app *.jar /app/my-storage.jar
8
8
9
9
EXPOSE 8081
10
10
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ spring:
24
24
resourceserver :
25
25
jwt :
26
26
issuer-uri : https://accounts.google.com
27
-
28
27
openapi :
29
28
service :
30
29
title : MyStorage API
You can’t perform that action at this time.
0 commit comments