Skip to content

Commit

Permalink
Remove ARM build for the moment, and build after tests
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Aug 23, 2023
1 parent 5113e7e commit b9698b0
Showing 1 changed file with 2 additions and 58 deletions.
60 changes: 2 additions & 58 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
path: build/distributions

build:
needs: unitTests
runs-on: ubuntu-latest
env:
architecture: "amd64"
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit b9698b0

Please sign in to comment.