Native Build #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Native Build | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Display release tag | |
run: echo ${{ github.event.release.tag_name }} | |
- name: Pull Docker Image | |
run: docker pull gradle:jdk21-graal-jammy | |
- name: Gradle Build | |
run: | | |
docker run --rm \ | |
-e GITHUB_REF=${{ github.ref }} \ | |
-e GITHUB_SHA=${{ github.sha }} \ | |
-e PLUGIN_ORGCONFIG=https://vacco-oss.s3.us-east-2.amazonaws.com/vacco-oss.json \ | |
-v ${{ github.workspace }}:/workspace \ | |
-w /workspace \ | |
gradle:jdk21-graal-jammy \ | |
gradle clean build nativeCompile | |
- name: Upload binaries | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
file: a4-lb/build/native/nativeCompile/a4lb-* | |
file_glob: true | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./a4-lb | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/awe4lb:${{ github.ref_name }} | |
file: ./a4-lb/Dockerfile |