Skip to content

[JVM] JDK-19 이미지 작성 (#4) #55

[JVM] JDK-19 이미지 작성 (#4)

[JVM] JDK-19 이미지 작성 (#4) #55

Workflow file for this run

name: JVM Image Push
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
strategy:
matrix:
image: [jre, jdk]
runs-on: ubuntu-latest
permissions:
packages: write
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Setup Docker buildx
uses: docker/[email protected]
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Metadata action(${{ matrix.image }})
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.image }}
tags: |
type=semver,pattern={{version}}
- name: Build and push Docker image(${{ matrix.image }})
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: jvm/
file: jvm/${{ matrix.image }}.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}