Skip to content

Commit

Permalink
correct working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhoan-axonivy committed Oct 29, 2024
1 parent 3939c22 commit 6ecdd8f
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
- name: Delete old sources code
continue-on-error: true
run: |
rm -r ${{ env.BASE_WORKING_DIR }}
rm -rf ${{ env.BASE_WORKING_DIR }}/*
mkdir -p ${{ env.BASE_WORKING_DIR }}
build-and-deploy:
Expand All @@ -53,19 +54,13 @@ jobs:
with:
ref: ${{ inputs.release_version || github.ref }}

- name: Print working directory
run: pwd # This will output the root of your repository

- name: List files
run: ls # This lists all files and folders in the root of your repo

- name: Copy resouces to working directory
run : |
cp -r /marketplace-ui ${{ env.BASE_WORKING_DIR }}/marketplace-ui
cp -r /marketplace-service ${{ env.BASE_WORKING_DIR }}/marketplace-service
cp -r /marketplace-build/config/nginx ${{ env.BASE_WORKING_DIR }}/config/nginx
cp -r /marketplace-build/dev/.env ${{ env.BASE_WORKING_DIR }}/dev/.env
cp -r /marketplace-build/dev/docker-compose.yml ${{ env.BASE_WORKING_DIR }}/dev/docker-compose.yml
cp -r marketplace-ui ${{ env.BASE_WORKING_DIR }}/marketplace-ui
cp -r marketplace-service ${{ env.BASE_WORKING_DIR }}/marketplace-service
cp -r marketplace-build/config/nginx ${{ env.BASE_WORKING_DIR }}/config/nginx
cp -r marketplace-build/dev/.env ${{ env.BASE_WORKING_DIR }}/dev/.env
cp -r marketplace-build/dev/docker-compose.yml ${{ env.BASE_WORKING_DIR }}/dev/docker-compose.yml
- name: Update environment variables for .env
env:
Expand Down

0 comments on commit 6ecdd8f

Please sign in to comment.