Skip to content

Bump k8s.io/client-go from 0.28.0 to 0.28.1 (#172) #198

Bump k8s.io/client-go from 0.28.0 to 0.28.1 (#172)

Bump k8s.io/client-go from 0.28.0 to 0.28.1 (#172) #198

Workflow file for this run

name: docker-image
on:
push:
branches:
- main
release:
types:
- published
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Get current date
run: echo "curr_date=$(date --utc +%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push ${{github.event.release.tag_name }}
id: docker_build_release
uses: docker/build-push-action@v4
if: ${{ github.event.release.tag_name != '' }}
with:
push: true
tags: ghcr.io/bakito/java-truststore-injection-webhook:latest,ghcr.io/bakito/java-truststore-injection-webhook:${{ github.event.release.tag_name }}
platforms: linux/amd64
provenance: false
build-args: |
VERSION=${{ github.event.release.tag_name }}
BUILD=${{ env.curr_date }}
- name: Build and push main
id: docker_build_main
uses: docker/build-push-action@v4
if: ${{ github.event.release.tag_name == '' }}
with:
push: true
tags: ghcr.io/bakito/java-truststore-injection-webhook:main
platforms: linux/amd64
provenance: false
build-args: |
VERSION=main
BUILD=${{ env.curr_date }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}