Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AJA-207] Chore(.github): update ci/cd flows #7

Merged
merged 3 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: assign reviewers, assignee
name: Auto assgin

on:
pull_request:
issues:
types:
- opened
types: [opened, labeled, unlabeled]

env:
REVIEWERS: 2jie0516, kys0411, Hejow
Expand All @@ -14,7 +13,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: hkusu/review-assign-action@v1
- uses: wow-actions/auto-assign@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
assignees: ${{ github.actor }}
reviewers: ${{ env.REVIEWERS }}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
uses: gradle/[email protected]
with:
gradle-version: ${{ env.GRADLE_VERSION }}
cache-read-only: true # will be update

- name: Check Code Convention
run: gradle check
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/ajaja-docker-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: generate docker image, upload to docker hub
name: renew docker image

on:
push:
Expand Down Expand Up @@ -30,7 +30,6 @@ jobs:
with:
arguments: clean build -x test -x check
gradle-version: ${{ env.GRADLE_VERSION }}
cache-read-only: true

- name: Login Docker Hub
uses: docker/login-action@v3
Expand All @@ -41,9 +40,9 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
build-args: |
JASYPT_PASSWORD= ${{ secrets.JASYPT_PASSWORD }}
file: ./Dockerfile
platforms: ${{ secrets.HOST_PLATFORM }}
build-args: JASYPT_PASSWORD= ${{ secrets.JASYPT_PASSWORD }}
tags: gmlwh124/ajaja:latest
context: .
4 changes: 2 additions & 2 deletions .github/workflows/ajaja-docker-run.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: pull docker image, re-run container
name: re-run server

on:
workflow_run:
workflows:
- "generate docker image, upload to docker hub"
- "renew docker image"
types:
- completed

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ARG JASYPT_PASSWORD

COPY ${JAR_FILE} ajaja.jar

ENV jasypt_password=${JASYPT_PASSWORD} \
spring_profile=${SPRING_PROFILE}
ENV spring_profile=${SPRING_PROFILE} \
jasypt_password=${JASYPT_PASSWORD}

ENTRYPOINT java -jar ajaja.jar \
--spring.profiles.active=${spring_profile} \
Expand Down