Skip to content

Commit

Permalink
Create build-p2-site.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
col-panic committed Aug 14, 2024
1 parent 1dee411 commit b48f604
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-p2-site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build P2 Site

env:
TARGET: '2023-09-java17'
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
DEPLOY_SECRET: ${{ secrets.SSH_PRIVATE_KEY_ED25519_BASE64 }}

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: [self-hosted, Linux, x64, Docker]
steps:
- uses: actions/checkout@v4
- name: pull docker image docker-build:${{ env.TARGET }}
run: docker pull ghcr.io/elexis/docker-build:${{ env.TARGET }}
- name: build using docker image docker-build:${{ env.TARGET }}
run: docker run --rm --init -v "$(pwd)":/usr/src/mymaven -v "$(eval echo ~$USER)/m2-${{ env.BRANCH_NAME }}":/root/.m2 -w /usr/src/mymaven ghcr.io/elexis/docker-build:${{ env.TARGET }} mvn -f releng/es.parent/pom.xml clean verify -Delexis.branch=${{ env.BRANCH_NAME }}

0 comments on commit b48f604

Please sign in to comment.