mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 12:59:44 +01:00
3e7efb7dd6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.9.0 to 6.10.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v6.9.0...v6.10.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
name: docker-3.2
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 3.2
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 8 * * 1"
|
|
|
|
env:
|
|
BUILD_VERSION: "3.2"
|
|
DOCKER_CLI_EXPERIMENTAL: enabled
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Source checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup QEMU
|
|
id: qemu
|
|
uses: docker/setup-qemu-action@v3.2.0
|
|
|
|
- name: Setup Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Set Docker metadata
|
|
id: docker_meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ github.repository }}
|
|
labels: |
|
|
org.opencontainers.image.version=${{ env.BUILD_VERSION }}
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
org.opencontainers.image.title=${{ github.repository }}
|
|
|
|
- name: GitHub login
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
uses: docker/login-action@v3.3.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6.10.0
|
|
with:
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
context: .
|
|
file: Dockerfile.git
|
|
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le
|
|
build-args: BUILD_VERSION
|
|
cache-from: type=gha, scope=${{ github.workflow }}
|
|
cache-to: type=gha, scope=${{ github.workflow }}
|
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
|
tags: |
|
|
ghcr.io/${{ github.repository }}:${{ env.BUILD_VERSION }}
|
|
ghcr.io/${{ github.repository }}:latest
|