Skip to content

Commit

Permalink
👷 github-actions self-hosted runner hot-fix#5 directory path set
Browse files Browse the repository at this point in the history
  • Loading branch information
TopazKang committed Sep 2, 2024
1 parent 23d935b commit d737dbb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/github-actions-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,11 @@ jobs:
needs: build

steps:
- name: Recreate .env file & login GHCR
- name: set env & deploy
run: |
pwd
cd /home/ubuntu/deploy/front
echo "${{ secrets.ENV_FILE_DEV }}" > .env
echo "${{ secrets.GHCR_TOKEN }}" | sudo docker login ghcr.io -u ${{ secrets.GIT_USER }} --password-stdin
- name: Prune Docker Images and Deploy With Docker-Compose
run: |
sudo docker image prune -a -f
sudo docker-compose -f docker-compose.front.yaml down
sudo docker-compose -f docker-compose.front.yaml pull
Expand Down

0 comments on commit d737dbb

Please sign in to comment.