Skip to content

Commit 5abf539

Browse files
committed
change deploy.yml
1 parent bcf2f55 commit 5abf539

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,20 @@ jobs:
9595
username: ${{ env.RASPBERRY_PI_USER }}
9696
key: ${{ secrets.RASPBERRY_PI_SSH_KEY }}
9797
port: 2022
98+
envs: MYSQL_ROOT_PASSWORD,MYSQL_DATABASE,MYSQL_USER,MYSQL_PASSWORD
9899
script: |
99100
cd /home/yoon/goormthon-java
100101
git pull origin main
101-
102+
102103
export BUILD_TAG="${{ github.sha }}"
103-
export DOCKER_REGISTRY="${{ env.REGISTRY }}"
104-
export DOCKER_REPO="${{ env.IMAGE_NAME }}"
105-
106-
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
107-
104+
export MYSQL_ROOT_PASSWORD="${{ secrets.MYSQL_ROOT_PASSWORD }}"
105+
export MYSQL_DATABASE="${{ secrets.MYSQL_DATABASE }}"
106+
export MYSQL_USER="${{ secrets.MYSQL_USER }}"
107+
export MYSQL_PASSWORD="${{ secrets.MYSQL_PASSWORD }}"
108+
108109
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
109-
docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64 dormung-springboot:latest
110-
111-
chmod +x deploy.sh
110+
docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64 dormung-springboot:latest
111+
112112
./deploy.sh deploy
113113
114114
- name: 🧪 Verify deployment
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1.71 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.
1.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)