Skip to content

Commit 258bc34

Browse files
committed
[NS-66] - Gateway gituhub config
1 parent cb6dc01 commit 258bc34

File tree

3 files changed

+3
-29
lines changed

3 files changed

+3
-29
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Publish
1+
name: Build and Publish Container
22

33
on:
44
release:
@@ -32,29 +32,4 @@ jobs:
3232
run: docker tag my-storage-image docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
3333

3434
- 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 }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV SPRING_PROFILES_ACTIVE=prod
44

55
WORKDIR /app
66

7-
COPY /api-webmvc/target/api-webmvc*.jar /app/my-storage.jar
7+
COPY /app/target/app*.jar /app/my-storage.jar
88

99
EXPOSE 8081
1010

app/src/main/resources/application.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ spring:
2424
resourceserver:
2525
jwt:
2626
issuer-uri: https://accounts.google.com
27-
2827
openapi:
2928
service:
3029
title: MyStorage API

0 commit comments

Comments
 (0)