Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add eclipse-temurin-*-focal images #284

Merged
merged 2 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/eclipse-temurin-11-focal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: eclipse-temurin-11-focal

on:
push:
paths:
- "eclipse-temurin-11-focal/**"
- .github/workflows/eclipse-temurin-11-focal.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"
pull_request:
paths:
- "eclipse-temurin-11-focal/**"
- .github/workflows/eclipse-temurin-11-focal.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"

jobs:
build:
uses: ./.github/workflows/_template.yml
with:
directory: eclipse-temurin-11-focal
secrets: inherit
28 changes: 28 additions & 0 deletions .github/workflows/eclipse-temurin-17-focal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: eclipse-temurin-17-focal

on:
push:
paths:
- "eclipse-temurin-17-focal/**"
- .github/workflows/eclipse-temurin-17-focal.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"
pull_request:
paths:
- "eclipse-temurin-17-focal/**"
- .github/workflows/eclipse-temurin-17-focal.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"

jobs:
build:
uses: ./.github/workflows/_template.yml
with:
directory: eclipse-temurin-17-focal
secrets: inherit
28 changes: 28 additions & 0 deletions .github/workflows/eclipse-temurin-8-focal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: eclipse-temurin-8-focal

on:
push:
paths:
- "eclipse-temurin-8-focal/**"
- .github/workflows/eclipse-temurin-8-focal.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"
pull_request:
paths:
- "eclipse-temurin-8-focal/**"
- .github/workflows/eclipse-temurin-8-focal.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"

jobs:
build:
uses: ./.github/workflows/_template.yml
with:
directory: eclipse-temurin-8-focal
secrets: inherit
120 changes: 4 additions & 116 deletions .github/workflows/libericaopenjdk-17-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,121 +20,9 @@ on:
- "!tests/*.ps*"
- "!tests/*.windows"

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
REGISTRY2: docker.io
# github.repository as <account>/<repo>
DOCKER_USERNAME: csanchez
IMAGE_NAME: carlossg/maven # ${{ github.repository }}
IMAGE_NAME2: csanchez/maven

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Setup BATS
uses: mig4/[email protected]
- name: Check out code
uses: actions/checkout@v2
- name: Update submodules
run: git submodule update --init

# Signing based on https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@main

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1

- name: Test
run: bats tests
env:
TAG: libericaopenjdk-17-alpine

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Log into registry DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY2 }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
tags: |
type=schedule,suffix=-libericaopenjdk-17-alpine
type=ref,event=tag,suffix=-libericaopenjdk-17-alpine
type=ref,event=pr,prefix=pr-,suffix=-libericaopenjdk-17-alpine
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME2 }}

# get all the docker tags for this image when building master
- name: Retrieve tags
if: github.ref == 'refs/heads/master'
run: |
TAGS="$(./tags-for-dir.sh ${GITHUB_WORKFLOW})"
TAGS="${TAGS//'%'/'%25'}"
TAGS="${TAGS//$'\n'/'%0A'}"
TAGS="${TAGS//$'\r'/'%0D'}"
echo "::set-output name=tags::$TAGS"
id: retrieve-tags

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v2
with:
context: libericaopenjdk-17-alpine
push: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
tags: |
${{ steps.meta.outputs.tags }}
${{ steps.retrieve-tags.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# Sign the resulting Docker image digest except on PRs and private repos
# The keyless signing process records signatures on the Rekor public
# transparency log, so signing is disabled for private repos by default
# to avoid leaking private data. If you wish to sign things anyways,
# then this check can be removed and --force can be added to the cosign
# command below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker images
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' && !github.event.repository.private }}
env:
REGISTRY1: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}
REGISTRY2: ${{ env.REGISTRY2 }}/${{ env.IMAGE_NAME2 }}@${{ steps.build-and-push.outputs.digest }}
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance, and records it to the
# sigstore community Rekor transparency log.
run: cosign sign --force ${REGISTRY1} ${REGISTRY2}
uses: ./.github/workflows/_template.yml
with:
directory: libericaopenjdk-17-alpine
secrets: inherit
120 changes: 4 additions & 116 deletions .github/workflows/libericaopenjdk-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,121 +20,9 @@ on:
- "!tests/*.ps*"
- "!tests/*.windows"

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
REGISTRY2: docker.io
# github.repository as <account>/<repo>
DOCKER_USERNAME: csanchez
IMAGE_NAME: carlossg/maven # ${{ github.repository }}
IMAGE_NAME2: csanchez/maven

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Setup BATS
uses: mig4/[email protected]
- name: Check out code
uses: actions/checkout@v2
- name: Update submodules
run: git submodule update --init

# Signing based on https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@main

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1

- name: Test
run: bats tests
env:
TAG: libericaopenjdk-17

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Log into registry DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY2 }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
tags: |
type=schedule,suffix=-libericaopenjdk-17
type=ref,event=tag,suffix=-libericaopenjdk-17
type=ref,event=pr,prefix=pr-,suffix=-libericaopenjdk-17
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME2 }}

# get all the docker tags for this image when building master
- name: Retrieve tags
if: github.ref == 'refs/heads/master'
run: |
TAGS="$(./tags-for-dir.sh ${GITHUB_WORKFLOW})"
TAGS="${TAGS//'%'/'%25'}"
TAGS="${TAGS//$'\n'/'%0A'}"
TAGS="${TAGS//$'\r'/'%0D'}"
echo "::set-output name=tags::$TAGS"
id: retrieve-tags

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v2
with:
context: libericaopenjdk-17
push: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
tags: |
${{ steps.meta.outputs.tags }}
${{ steps.retrieve-tags.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# Sign the resulting Docker image digest except on PRs and private repos
# The keyless signing process records signatures on the Rekor public
# transparency log, so signing is disabled for private repos by default
# to avoid leaking private data. If you wish to sign things anyways,
# then this check can be removed and --force can be added to the cosign
# command below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker images
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' && !github.event.repository.private }}
env:
REGISTRY1: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}
REGISTRY2: ${{ env.REGISTRY2 }}/${{ env.IMAGE_NAME2 }}@${{ steps.build-and-push.outputs.digest }}
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance, and records it to the
# sigstore community Rekor transparency log.
run: cosign sign --force ${REGISTRY1} ${REGISTRY2}
uses: ./.github/workflows/_template.yml
with:
directory: libericaopenjdk-17
secrets: inherit
6 changes: 6 additions & 0 deletions .github/workflows/other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ on:
- '!common.sh/**'
- '!eclipse-temurin-11/**'
- '!eclipse-temurin-11-alpine/**'
- '!eclipse-temurin-11-focal/**'
- '!eclipse-temurin-17/**'
- '!eclipse-temurin-17-alpine/**'
- '!eclipse-temurin-17-focal/**'
- '!eclipse-temurin-18/**'
- '!eclipse-temurin-18-alpine/**'
- '!eclipse-temurin-8/**'
- '!eclipse-temurin-8-alpine/**'
- '!eclipse-temurin-8-focal/**'
- '!generate-stackbrew-library.sh/**'
- '!github-action-generation.sh/**'
- '!github-action.ps1/**'
Expand Down Expand Up @@ -77,12 +80,15 @@ on:
- '!common.sh/**'
- '!eclipse-temurin-11/**'
- '!eclipse-temurin-11-alpine/**'
- '!eclipse-temurin-11-focal/**'
- '!eclipse-temurin-17/**'
- '!eclipse-temurin-17-alpine/**'
- '!eclipse-temurin-17-focal/**'
- '!eclipse-temurin-18/**'
- '!eclipse-temurin-18-alpine/**'
- '!eclipse-temurin-8/**'
- '!eclipse-temurin-8-alpine/**'
- '!eclipse-temurin-8-focal/**'
- '!generate-stackbrew-library.sh/**'
- '!github-action-generation.sh/**'
- '!github-action.ps1/**'
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ See Docker Hub or GitHub Container Registry for an updated list of tags
* [openjdk-18-slim](https://github.com/carlossg/docker-maven/blob/master/openjdk-17-slim/Dockerfile)
* [eclipse-temurin-8](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-8/Dockerfile)
* [eclipse-temurin-8-alpine](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-8-alpine/Dockerfile)
* [eclipse-temurin-8-focal](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-8-focal/Dockerfile)
* [eclipse-temurin-11](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-11/Dockerfile)
* [eclipse-temurin-11-alpine](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-11-alpine/Dockerfile)
* [eclipse-temurin-11-focal](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-11-focal/Dockerfile)
* [eclipse-temurin-16](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-16/Dockerfile)
* [eclipse-temurin-16-alpine](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-16-alpine/Dockerfile)
* [eclipse-temurin-17](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-17/Dockerfile)
* [eclipse-temurin-17-alpine](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-17-alpine/Dockerfile)
* [eclipse-temurin-17-focal](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-17-focal/Dockerfile)
* [eclipse-temurin-18](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-18/Dockerfile)
* [eclipse-temurin-18-alpine](https://github.com/carlossg/docker-maven/blob/master/eclipse-temurin-18-alpine/Dockerfile)
* [ibm-semeru-11-focal](https://github.com/carlossg/docker-maven/blob/master/ibm-semeru-11-focal/Dockerfile)
Expand Down
Loading