Skip to content

Commit

Permalink
chore: file directory fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
althafdaa committed Sep 3, 2024
1 parent 123643d commit fdfa85c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ jobs:
- name: Copy app/.next/static directory
run: |
container_id=$(docker create ${{ vars.DOCKER_REGISTRY_LOCATION }}/${{ secrets.GOOGLE_PROJECT }}/inner-catalog/catalog-ui:dev-${{ github.run_id }})
docker create --name temp ${{ vars.DOCKER_REGISTRY_LOCATION }}/${{ secrets.GOOGLE_PROJECT }}/inner-catalog/catalog-ui:dev-${{ github.run_id }}
docker cp temp:/app/.next/static ./.next/static
mkdir -p /temporary/.next/static
docker cp temp:/app/.next/static /temporary/.next/static
docker rm temp
- name: Upload static files to R2 bucket
Expand All @@ -72,7 +74,7 @@ jobs:
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: ./.next/static
source-dir: /temporary/.next/static
destination-dir: ./static/development

deploy:
Expand Down

0 comments on commit fdfa85c

Please sign in to comment.