mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-06 03:52:54 +02:00
Merge pull request #2811 from testssl/docker_action_rename
Change action docker file to 3.3dev
This commit is contained in:
65
.github/workflows/docker-3.3dev.yml
vendored
Normal file
65
.github/workflows/docker-3.3dev.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
name: docker-3.3dev
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 3.3dev
|
||||
workflow_dispatch:
|
||||
# Every day at 7am on Mondays, publish the 3.3dev branch.
|
||||
# NOTE: `schedule` event is only triggered for the default branch:
|
||||
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
|
||||
schedule:
|
||||
- cron: "0 7 * * *"
|
||||
|
||||
env:
|
||||
GIT_BRANCH: "3.3dev"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: lowercase the repository name
|
||||
run: echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
|
||||
|
||||
- name: Source checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup QEMU
|
||||
id: qemu
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- 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: ${{ env.REPO }}
|
||||
labels: |
|
||||
org.opencontainers.image.version=${{ env.GIT_BRANCH }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
org.opencontainers.image.title=${{ env.REPO }}
|
||||
|
||||
- name: GitHub login
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
context: .
|
||||
file: Dockerfile.alpine
|
||||
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le
|
||||
cache-from: type=gha, scope=${{ github.workflow }}
|
||||
cache-to: type=gha, scope=${{ github.workflow }}
|
||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||
tags: |
|
||||
ghcr.io/${{ env.REPO }}:${{ env.GIT_BRANCH }}
|
||||
ghcr.io/${{ env.REPO }}:latest
|
1
.github/workflows/unit_tests_macos.yml
vendored
1
.github/workflows/unit_tests_macos.yml
vendored
@ -11,6 +11,7 @@ on:
|
||||
- '**.pem'
|
||||
- '**.pdf'
|
||||
- '**.html'
|
||||
- '**.yml'
|
||||
- 'LICENSE'
|
||||
- 'Dockerfile'
|
||||
- 'Dockerfile.alpine'
|
||||
|
1
.github/workflows/unit_tests_ubuntu.yml
vendored
1
.github/workflows/unit_tests_ubuntu.yml
vendored
@ -11,6 +11,7 @@ on:
|
||||
- '**.pem'
|
||||
- '**.pdf'
|
||||
- '**.html'
|
||||
- '**.yml'
|
||||
- 'LICENSE'
|
||||
- 'Dockerfile'
|
||||
- 'Dockerfile.alpine'
|
||||
|
Reference in New Issue
Block a user