Skip to content

Commit

Permalink
Build arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Feb 6, 2024
1 parent 41ddc06 commit 8272989
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
jdk:
- 17
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "Set up JDK ${{ matrix.jdk }}"
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "${{ matrix.jdk }}"
distribution: "liberica"
- name: "Build with Gradle"
run: ./gradlew check distTar
- name: "Upload Artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "Kotlin Application"
path: "build/distributions/repo.tar"
Expand All @@ -29,26 +29,25 @@ jobs:
needs: build
steps:
- name: "Checkout"
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: "Kotlin Application"
path: "build/distributions/"
- name: "Untar files"
run: mkdir -p build/install && tar -xvf build/distributions/repo.tar -C $_
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: "Login to GHCR"
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build and push"
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: |
ghcr.io/heapy/repo.kotlin.link:main
ghcr.io/heapy/repo.kotlin.link:b${{ github.run_number }}
tags: ghcr.io/heapy/repo.kotlin.link:main
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm").version("1.9.20")
kotlin("plugin.serialization").version("1.9.20")
kotlin("jvm").version("1.9.22")
kotlin("plugin.serialization").version("1.9.22")
application
}

Expand All @@ -15,11 +15,11 @@ repositories {

dependencies {
implementation("io.undertow:undertow-core:2.3.10.Final")
implementation("ch.qos.logback:logback-classic:1.4.11")
implementation("io.micrometer:micrometer-registry-prometheus:1.11.5")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.9.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
implementation("ch.qos.logback:logback-classic:1.4.14")
implementation("io.micrometer:micrometer-registry-prometheus:1.12.2")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.11.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
}

kotlin {
Expand Down

0 comments on commit 8272989

Please sign in to comment.