Skip to content

Commit b752dd6

Browse files
committed
test deployment
1 parent 2471d97 commit b752dd6

File tree

2 files changed

+72
-74
lines changed

2 files changed

+72
-74
lines changed
Lines changed: 71 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,71 @@
1-
name: Build Docker Images
2-
3-
on:
4-
push:
5-
- mainx
6-
- 39-setup-keycloak
7-
8-
jobs:
9-
test:
10-
name: Run Java Tests
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
16-
- uses: actions/setup-java@v4
17-
with:
18-
java-version: '21'
19-
distribution: 'temurin'
20-
21-
- name: Setup Gradle
22-
uses: gradle/actions/setup-gradle@v4
23-
24-
- name: Build with Gradle
25-
run: cd server && gradle build
26-
27-
build:
28-
name: Build Docker Images
29-
needs: test
30-
runs-on: ubuntu-latest
31-
strategy:
32-
matrix:
33-
service: [client, server]
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v4
37-
with:
38-
fetch-depth: 0
39-
40-
- name: Log in to the Container registry
41-
uses: docker/login-action@v3
42-
with:
43-
registry: ghcr.io
44-
username: ${{ github.actor }}
45-
password: ${{ secrets.GITHUB_TOKEN }}
46-
47-
- name: Set up QEMU
48-
uses: docker/setup-qemu-action@v3
49-
with:
50-
platforms: all
51-
52-
- name: Install Docker Buildx
53-
id: buildx
54-
uses: docker/setup-buildx-action@v3
55-
56-
- name: Extract metadata (tags, labels) for Docker
57-
id: meta
58-
uses: docker/metadata-action@v5
59-
with:
60-
images: ghcr.io/${{ github.repository }}/${{ matrix.service }}
61-
tags: |
62-
type=raw,value=latest
63-
type=sha
64-
65-
- name: Build and push Docker Image
66-
uses: docker/build-push-action@v5
67-
with:
68-
platforms: linux/amd64,linux/arm64
69-
context: ./${{ matrix.service }}
70-
file: ./${{ matrix.service }}/Dockerfile
71-
push: true
72-
tags: ${{ steps.meta.outputs.tags }}
73-
labels: ${{ steps.meta.outputs.labels }}
1+
#name: Build Docker Images
2+
#
3+
#on:
4+
# push:
5+
# - mainx
6+
#jobs:
7+
# test:
8+
# name: Run Java Tests
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - name: Checkout
12+
# uses: actions/checkout@v4
13+
#
14+
# - uses: actions/setup-java@v4
15+
# with:
16+
# java-version: '21'
17+
# distribution: 'temurin'
18+
#
19+
# - name: Setup Gradle
20+
# uses: gradle/actions/setup-gradle@v4
21+
#
22+
# - name: Build with Gradle
23+
# run: cd server && gradle build
24+
#
25+
# build:
26+
# name: Build Docker Images
27+
# needs: test
28+
# runs-on: ubuntu-latest
29+
# strategy:
30+
# matrix:
31+
# service: [client, server]
32+
# steps:
33+
# - name: Checkout
34+
# uses: actions/checkout@v4
35+
# with:
36+
# fetch-depth: 0
37+
#
38+
# - name: Log in to the Container registry
39+
# uses: docker/login-action@v3
40+
# with:
41+
# registry: ghcr.io
42+
# username: ${{ github.actor }}
43+
# password: ${{ secrets.GITHUB_TOKEN }}
44+
#
45+
# - name: Set up QEMU
46+
# uses: docker/setup-qemu-action@v3
47+
# with:
48+
# platforms: all
49+
#
50+
# - name: Install Docker Buildx
51+
# id: buildx
52+
# uses: docker/setup-buildx-action@v3
53+
#
54+
# - name: Extract metadata (tags, labels) for Docker
55+
# id: meta
56+
# uses: docker/metadata-action@v5
57+
# with:
58+
# images: ghcr.io/${{ github.repository }}/${{ matrix.service }}
59+
# tags: |
60+
# type=raw,value=latest,enable={{is_default_branch}}
61+
# type=ref,event=branch
62+
# type=ref,event=pr
63+
# - name: Build and push Docker Image
64+
# uses: docker/build-push-action@v5
65+
# with:
66+
# platforms: linux/amd64,linux/arm64
67+
# context: ./${{ matrix.service }}
68+
# file: ./${{ matrix.service }}/Dockerfile
69+
# push: true
70+
# tags: ${{ steps.meta.outputs.tags }}
71+
# labels: ${{ steps.meta.outputs.labels }}

.github/workflows/deploy-to-k8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
echo "TAG=latest" >> $GITHUB_ENV
4141
echo "NAMESPACE=tsd-prod" >> $GITHUB_ENV
4242
echo "VALUES_FILE=./helm/whiteboard-app/production.values.yaml" >> $GITHUB_ENV
43-
elif [[ "${GITHUB_REF##*/}" == "develop" ]]; then
43+
else
4444
echo "TAG=develop" >> $GITHUB_ENV
4545
echo "NAMESPACE=tsd-staging" >> $GITHUB_ENV
4646
echo "VALUES_FILE=./helm/whiteboard-app/staging.values.yaml" >> $GITHUB_ENV

0 commit comments

Comments
 (0)