Skip to content

add configputcommand #13

add configputcommand

add configputcommand #13

Workflow file for this run

name: Release
on:
push:
branches: [ "master" ]
permissions: write-all
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Maven
run: mvn -B package --file pom.xml -Dpackaging=native-image -DskipTests
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/opendonationassistant/oda-config-service:${{ github.RUN_NUMBER }}
- name: Deploying new version
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
port: ${{ secrets.PORT }}
script: sh ~/update_config_server.sh ${{ github.RUN_NUMBER }}