Skip to content

Merge branch 'main' of github.com:monimesl/bookkeeper-operator #107

Merge branch 'main' of github.com:monimesl/bookkeeper-operator

Merge branch 'main' of github.com:monimesl/bookkeeper-operator #107

#
# Copyright 2021 - now, the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Bookeeper Docker
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Prepare Variables
id: prepare
run: |
DOCKER_IMAGE=monime/bookkeeper
VERSION=${GITHUB_REF#refs/tags/}
LATEST="${DOCKER_IMAGE}:latest"
echo ::set-output name=image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION}
echo ::set-output name=latest::${LATEST}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# Bookkeeper-4.13.0
- uses: docker/build-push-action@v2
name: Build-Push-4.13.0
with:
push: true
build-args: |
bk_version=4.13.0
file: deployments/docker/bookkeeper/Dockerfile
tags: |
${{ steps.prepare.outputs.image }}:4.13.0
${{ steps.prepare.outputs.latest }}
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
# Bookkeeper-4.14.5
- uses: docker/build-push-action@v2
name: Build-Push-4.14.5
with:
push: true
build-args: |
bk_version=4.14.5
file: deployments/docker/bookkeeper/Dockerfile
tags: |
${{ steps.prepare.outputs.image }}:4.14.5
${{ steps.prepare.outputs.latest }}
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.version=${{ steps.prepare.outputs.version }}
org.opencontainers.image.created=${{ steps.prepare.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
# Bookkeeper-4.15.1
- uses: docker/build-push-action@v2
name: Build-Push-4.15.1
with:
push: true
build-args: |
bk_version=4.15.1
file: deployments/docker/bookkeeper/Dockerfile
tags: |
${{ steps.prepare.outputs.image }}:4.15.1
${{ steps.prepare.outputs.latest }}
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.version=${{ steps.prepare.outputs.version }}
org.opencontainers.image.created=${{ steps.prepare.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
# Bookkeeper-4.15.2
- uses: docker/build-push-action@v2
name: Build-Push-4.15.2
with:
push: true
build-args: |
bk_version=4.15.2
file: deployments/docker/bookkeeper/Dockerfile
tags: |
${{ steps.prepare.outputs.image }}:4.15.2
${{ steps.prepare.outputs.latest }}
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.version=${{ steps.prepare.outputs.version }}
org.opencontainers.image.created=${{ steps.prepare.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
# Bookkeeper-4.15.4
- uses: docker/build-push-action@v2
name: Build-Push-4.15.4
with:
push: true
build-args: |
bk_version=4.15.4
file: deployments/docker/bookkeeper/Dockerfile
tags: |
${{ steps.prepare.outputs.image }}:4.15.4
${{ steps.prepare.outputs.latest }}
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.version=${{ steps.prepare.outputs.version }}
org.opencontainers.image.created=${{ steps.prepare.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}