Skip to content

Build and Push Temurin Images #28

Build and Push Temurin Images

Build and Push Temurin Images #28

Workflow file for this run

name: Build and Push Temurin Images
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java_version: ['8', '11', '17', '21']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
chmod +x ./build.sh
./build.sh temurin/${{ matrix.java_version }} temurin