Skip to content

Commit

Permalink
[NS-66] - Gateway gituhub config
Browse files Browse the repository at this point in the history
  • Loading branch information
Narvane committed Apr 22, 2024
1 parent cb6dc01 commit 258bc34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Publish
name: Build and Publish Container

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

- name: Push Docker image to GitHub Packages
run: docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
deploy:
runs-on: ubuntu-latest

steps:
- name: Install sshpass
run: sudo apt-get install -y sshpass

- name: SSH into Server and deploy
run: |
sshpass -p ${{ secrets.SERVER_PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }} '
cd my-routine/my-storage &&
git pull origin master
'
# publish:
# runs-on: ubuntu-latest
#
# steps:
# - name: Log into GitHub Packages
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin
#
# - name: Tag Docker image
# run: docker tag my-storage-image:latest docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
#
# - name: Push Docker image to GitHub Packages
# run: docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
run: docker push docker.pkg.github.com/narvane/my-storage/my-storage-image:${{ github.event.release.tag_name }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV SPRING_PROFILES_ACTIVE=prod

WORKDIR /app

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

EXPOSE 8081

Expand Down
1 change: 0 additions & 1 deletion app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ spring:
resourceserver:
jwt:
issuer-uri: https://accounts.google.com

openapi:
service:
title: MyStorage API
Expand Down

0 comments on commit 258bc34

Please sign in to comment.