mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 21:17:54 -05:00
Remove ARM build for the moment, and build after tests
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
This commit is contained in:
60
.github/workflows/workflow.yaml
vendored
60
.github/workflows/workflow.yaml
vendored
@@ -86,6 +86,7 @@ jobs:
|
||||
path: build/distributions
|
||||
|
||||
build:
|
||||
needs: unitTests
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
architecture: "amd64"
|
||||
@@ -111,38 +112,6 @@ jobs:
|
||||
# run: |
|
||||
# mkdir -p docker/reports
|
||||
# curl -L https://github.com/goss-org/goss/releases/download/v0.3.22/goss-linux-amd64 -o ./docker/tests/goss-linux-amd64
|
||||
# ./gradlew --no-daemon dockerTest
|
||||
|
||||
buildArm64:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [ arm64 ]
|
||||
env:
|
||||
architecture: "arm64"
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=2"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'adopt'
|
||||
architecture: aarch64
|
||||
- name: Check Dockerfile syntax
|
||||
run: |
|
||||
docker run --rm -i hadolint/hadolint < docker/openjdk-17/Dockerfile
|
||||
docker run --rm -i hadolint/hadolint < docker/openjdk-17-debug/Dockerfile
|
||||
docker run --rm -i hadolint/hadolint < docker/openjdk-latest/Dockerfile
|
||||
docker run --rm -i hadolint/hadolint < docker/graalvm/Dockerfile
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
./gradlew --no-daemon dockerDist
|
||||
# - name: Test Docker Image
|
||||
# run: |
|
||||
# mkdir -p docker/reports
|
||||
# curl -L https://github.com/goss-org/goss/releases/download/v0.3.22/goss-linux-arm64 -o ./docker/tests/goss-linux-arm64
|
||||
# ./gradlew --no-daemon dockerTest
|
||||
|
||||
publishDocker:
|
||||
@@ -169,33 +138,8 @@ jobs:
|
||||
run: |
|
||||
./gradlew --no-daemon dockerUpload
|
||||
|
||||
publishDockerArm64:
|
||||
needs: buildArm64
|
||||
if: github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
architecture: "arm64"
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=2"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'adopt'
|
||||
architecture: aarch64
|
||||
- name: Login to Docker Hub for self hosted
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER_RW }}
|
||||
password: ${{ secrets.DOCKER_PAT_RW }}
|
||||
- name: Publish Docker Image
|
||||
run: |
|
||||
./gradlew --no-daemon dockerUpload
|
||||
|
||||
publishManifest:
|
||||
needs: [ publishDocker, publishDockerArm64 ]
|
||||
needs: publishDocker
|
||||
if: github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user