Skip to content

Deployment Prod

Deployment Prod #21

Workflow file for this run

name: Deployment Prod
on: workflow_dispatch
permissions:
contents: read
packages: write
concurrency: prod
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/[email protected]
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build with tests
run: ./gradlew build
- name: Build Docker images with gradle
run: ./gradlew imageBuild
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: 'ghcr.io'
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag And Push Docker Images
run: ./deploy_images.sh
- name: triggering deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: ignored