Skip to content

Commit

Permalink
fix: docker container build (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud authored May 30, 2024
1 parent 7b72831 commit 6077a52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/backend-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ jobs:
shell: bash
working-directory: ./deploy

# - name: Cache Maven packages
# uses: actions/cache@v4
# with:
# path: ~/.m2
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-

- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:

- name: Run custom Docker build script
working-directory: ./deploy
shell: bash
run: |
chmod +x make-docker-container.sh
./make-docker-container.sh
Expand Down
24 changes: 4 additions & 20 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,22 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "20"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: restore yarn cache
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: yarn
cache-dependency-path: webapp/yarn.lock

- name: restore node_modules
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node_modules-${{ hashFiles('webapp/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: restore typescript cache
uses: actions/cache@v4
with:
path: "**/packages/*/dist"
key: ${{ runner.os }}-dist-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-dist-${{ hashFiles('webapp/yarn.lock') }}
restore-keys: |
${{ runner.os }}-dist-
Expand All @@ -65,12 +55,6 @@ jobs:
dir: webapp
cmd: install

- name: yarn lerna bootstrap
uses: borales/actions-yarn@v5
with:
dir: webapp
cmd: lerna bootstrap

- name: build
uses: borales/actions-yarn@v5
with:
Expand Down

0 comments on commit 6077a52

Please sign in to comment.