chore(deps): update eclipse-temurin:21.0.3_9-jre-jammy docker digest to 3b44b66 #1395
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: pr | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
IMAGE_NAME: ${{ github.event.repository.name }} | |
VERSION: '0.0.1' | |
jobs: | |
build-gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@66535aaf56f831b35e3a8481c9c99b665b84dd45 # v3.4.2 | |
- name: Execute Gradle build | |
run: ./gradlew test installDist | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 | |
with: | |
name: binaries | |
path: build/install | |
retention-days: 1 | |
build-docker: | |
runs-on: ubuntu-latest | |
needs: build-gradle | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3 | |
- name: Download binaries | |
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4 | |
with: | |
name: binaries | |
path: build/install | |
- name: Build container image | |
uses: docker/build-push-action@f6010ea70151369b06f0194be1051fbbdff851b2 # v6 | |
with: | |
push: false | |
builder: ${{ steps.buildx.outputs.name }} | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64,linux/arm64/v8 | |
tags: | | |
ghcr.io/avisi-cloud/${{ env.IMAGE_NAME }}:${{ env.VERSION }} | |
ghcr.io/avisi-cloud/${{ env.IMAGE_NAME }}:latest | |
labels: | | |
org.opencontainers.image.title=${{ github.event.repository.name }} | |
org.opencontainers.image.description=${{ github.event.repository.description }} | |
org.opencontainers.image.url=${{ github.event.repository.html_url }} | |
org.opencontainers.image.revision=${{ github.sha }} | |
org.opencontainers.image.version=${{ env.VERSION }} |