Merge pull request #70 from bloxbean/node_9.1.1 #35
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: Build and Release Yaci Devkit | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
buildAndPush: | |
runs-on: self-hosted | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
FORCE_COLOR: 1 | |
steps: | |
- uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.0 | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v3 | |
with: | |
image: tonistiigi/binfmt:latest | |
platforms: all | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- uses: actions/checkout@v4 | |
- name: Docker Login | |
run: docker login --username "$DOCKERHUB_USERNAME" --password "$DOCKERHUB_TOKEN" | |
# - uses: graalvm/setup-graalvm@v1 | |
# with: | |
# java-version: '21' | |
# distribution: 'liberica' | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get Tag from version file | |
run: | | |
TAG=$(grep "tag=" config/version | cut -d'=' -f2) | |
echo "TAG=${TAG}" >> $GITHUB_ENV | |
- name: Run build | |
run: earthly --push +build-all-platforms --tag ${{ env.TAG }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
build/yaci-devkit-${{env.TAG}}.zip | |
prerelease: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |