Skip to content

feat: Change sh to bash #18

feat: Change sh to bash

feat: Change sh to bash #18

Workflow file for this run

name: Java
on:
workflow_dispatch:
push:
branches:
- master
paths:
- java/**
jobs:
push:
name: "esdock:java_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- 16
- 17
- 18
- 19
- 20
- 21
- 22
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- if: matrix.tag >= 16 && matrix.tag <= 20
uses: docker/build-push-action@v5
with:
context: ./java
file: ./java/amd/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/zastinian/esdock:java_${{ matrix.tag }}_amd
- if: matrix.tag >= 16 && matrix.tag <= 20
uses: docker/build-push-action@v5
with:
context: ./java
file: ./java/arm/${{ matrix.tag }}/Dockerfile
platforms: linux/arm64
push: true
tags: |
ghcr.io/zastinian/esdock:java_${{ matrix.tag }}_arm
- if: matrix.tag >= 21
uses: docker/build-push-action@v5
with:
context: ./java
file: ./java/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/zastinian/esdock:java_${{ matrix.tag }}