Skip to content

Commit

Permalink
customize release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eum602 committed Oct 2, 2023
1 parent 5039048 commit daa0c9e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lacchain-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release lacchain-besu
on:
release:
types: released
env:
REGISTRY: ghcr.io
jobs:
dockerPromoteX64:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build docker image
env:
architecture: "amd64"
dockerVariants: "openjdk-17"
run: ./gradlew --no-daemon "-Prelease.releaseVersion=${{ github.ref_name }}" "-PdockerArtifactName=lacchain-besu" "-PdockerOrgName=lacchain" dockerUpload -x test -x :ethereum:evmtool:dockerUpload

0 comments on commit daa0c9e

Please sign in to comment.