Skip to content

Commit

Permalink
fix: github action step (#221)
Browse files Browse the repository at this point in the history
* add docker push step

* add github action steps

* fix java version

* gradle build parallel

* docker login with token
  • Loading branch information
chicori3 authored Jul 25, 2024
1 parent 1d309b6 commit a7f34cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,25 @@ jobs:
mkdir deploy/scripts
cp ./scripts/* ./deploy/scripts/
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Docker login
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: Docker push
run: |
cd module-web
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker build -t ${{ secrets.DOCKER_REPOSITORY_PROD }} .
docker push ${{ secrets.DOCKER_REPOSITORY_PROD }}
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ okhttpVersion=4.10.0
awsJavaSdkVersion=1.12.281
jasyptVersion=3.0.4
sonarqubeVersion=3.4.0.2513
jacocoVersion=0.8.8
jacocoVersion=0.8.8
org.gradle.parallel=true

0 comments on commit a7f34cb

Please sign in to comment.