Skip to content

refactor: db ip change #4

refactor: db ip change

refactor: db ip change #4

name: Backend Production Server CD My All
permissions:
contents: read
on:
push:
branches: [ "be/my-test" ]
tags:
- 'v*'
jobs:
test:
uses: ./.github/workflows/Backend-CI.yml
secrets: inherit
build:
needs: test
runs-on: ci
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew bootJar
working-directory: ./backend/pokerogue
- name: Docker build and push
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t ${{ secrets.DOCKER_SERVER_IMAGE }} -f ./backend/pokerogue/docker/Dockerfile ./backend/pokerogue
docker push ${{ secrets.DOCKER_SERVER_IMAGE }}
prod_a:
needs: build
name: Backend Production Server CD My A
uses: ./.github/workflows/Backend-CD-My-A.yml
secrets: inherit