Skip to content

Commit 3ebf577

Browse files
committed
revert me
1 parent a0b4248 commit 3ebf577

File tree

1 file changed

+71
-71
lines changed

1 file changed

+71
-71
lines changed

.github/workflows/deploy.yml

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,29 @@ jobs:
4444
distribution: temurin
4545
cache: 'maven'
4646

47-
#- name: Set up Node
48-
# uses: actions/setup-node@v4
49-
# with:
50-
# node-version: '22'
51-
#
52-
#- name: Set up pnpm
53-
# uses: pnpm/action-setup@v4
54-
# with:
55-
# version: 9
56-
#
57-
#- name: Get pnpm store directory
58-
# id: pnpm-cache
59-
# shell: bash
60-
# run: |
61-
# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
62-
#
63-
#- name: Cache pnpm
64-
# uses: actions/cache@v4
65-
# with:
66-
# path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
67-
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
68-
# restore-keys: |
69-
# ${{ runner.os }}-pnpm-store-
47+
- name: Set up Node
48+
uses: actions/setup-node@v4
49+
with:
50+
node-version: '22'
51+
52+
- name: Set up pnpm
53+
uses: pnpm/action-setup@v4
54+
with:
55+
version: 9
56+
57+
- name: Get pnpm store directory
58+
id: pnpm-cache
59+
shell: bash
60+
run: |
61+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
62+
63+
- name: Cache pnpm
64+
uses: actions/cache@v4
65+
with:
66+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
67+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
68+
restore-keys: |
69+
${{ runner.os }}-pnpm-store-
7070
7171
- name: Cache Maven Deps
7272
uses: actions/cache@v4
@@ -80,35 +80,35 @@ jobs:
8080
working-directory: backend
8181
run: mvn --batch-mode --errors --fail-at-end --show-version --no-transfer-progress -DskipTests=true install
8282

83-
#- name: Install frontend deps
84-
# run: (cd frontend && pnpm install --frozen-lockfile)
85-
#
86-
#- name: Lint frontend
87-
# run: (cd frontend && pnpm lint:oxlint && pnpm lint:eslint)
88-
#
89-
#- name: Sync forth and back with crowdin
90-
# uses: crowdin/github-action@v2
91-
# with:
92-
# upload_sources: true
93-
# download_translations: true
94-
# push_translations: false
95-
# create_pull_request: false
96-
# skip_untranslated_strings: true
97-
# config: 'crowdin.yml'
98-
# crowdin_branch_name: master
99-
# env:
100-
# CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
101-
#
102-
#- name: Build frontend (prod)
103-
# if: ${{ github.ref == 'refs/heads/master' }}
104-
# run: (cd frontend && pnpm build)
105-
# env:
106-
# NODE_ENV: "production"
107-
#- name: Build frontend (staging)
108-
# if: ${{ github.ref == 'refs/heads/staging' }}
109-
# run: (cd frontend && pnpm buildStaging)
110-
# env:
111-
# NODE_ENV: "production"
83+
- name: Install frontend deps
84+
run: (cd frontend && pnpm install --frozen-lockfile)
85+
86+
- name: Lint frontend
87+
run: (cd frontend && pnpm lint:oxlint && pnpm lint:eslint)
88+
89+
- name: Sync forth and back with crowdin
90+
uses: crowdin/github-action@v2
91+
with:
92+
upload_sources: true
93+
download_translations: true
94+
push_translations: false
95+
create_pull_request: false
96+
skip_untranslated_strings: true
97+
config: 'crowdin.yml'
98+
crowdin_branch_name: master
99+
env:
100+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
101+
102+
- name: Build frontend (prod)
103+
if: ${{ github.ref == 'refs/heads/master' }}
104+
run: (cd frontend && pnpm build)
105+
env:
106+
NODE_ENV: "production"
107+
- name: Build frontend (staging)
108+
if: ${{ github.ref == 'refs/heads/staging' }}
109+
run: (cd frontend && pnpm buildStaging)
110+
env:
111+
NODE_ENV: "production"
112112

113113
- name: Login to registry
114114
uses: docker/login-action@v3
@@ -117,25 +117,25 @@ jobs:
117117
username: ${{ github.actor }}
118118
password: ${{ secrets.GITHUB_TOKEN }}
119119

120-
#- name: Extract metadata (tags, labels) for Docker (frontend)
121-
# id: frontend-meta
122-
# uses: docker/metadata-action@v5
123-
# with:
124-
# images: ${{ env.REGISTRY }}/${{ github.repository }}/frontend
125-
# tags: |
126-
# type=sha,enable=true,format=short,prefix=${{ env.BRANCH_NAME }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
127-
# type=raw,value=latest,enable={{is_default_branch}}
128-
129-
#- name: Build and push frontend Dockerfile
130-
# uses: docker/build-push-action@v6
131-
# with:
132-
# context: .
133-
# file: chart/dockerfiles/frontend/Dockerfile
134-
# tags: ${{ steps.frontend-meta.outputs.tags }}
135-
# labels: ${{ steps.frontend-meta.outputs.labels }}
136-
# push: true
137-
# cache-from: type=gha
138-
# cache-to: type=gha,mode=max
120+
- name: Extract metadata (tags, labels) for Docker (frontend)
121+
id: frontend-meta
122+
uses: docker/metadata-action@v5
123+
with:
124+
images: ${{ env.REGISTRY }}/${{ github.repository }}/frontend
125+
tags: |
126+
type=sha,enable=true,format=short,prefix=${{ env.BRANCH_NAME }}-,suffix=-${{ steps.timestamp.outputs.timestamp }}
127+
type=raw,value=latest,enable={{is_default_branch}}
128+
129+
- name: Build and push frontend Dockerfile
130+
uses: docker/build-push-action@v6
131+
with:
132+
context: .
133+
file: chart/dockerfiles/frontend/Dockerfile
134+
tags: ${{ steps.frontend-meta.outputs.tags }}
135+
labels: ${{ steps.frontend-meta.outputs.labels }}
136+
push: true
137+
cache-from: type=gha
138+
cache-to: type=gha,mode=max
139139

140140
- name: Extract metadata (tags, labels) for Docker (backend)
141141
id: backend-meta

0 commit comments

Comments
 (0)