mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-02 01:58:28 +02:00
Merge branch '3.2' into mac_runner
This commit is contained in:
29
.github/workflows/docker-3.2.yml
vendored
29
.github/workflows/docker-3.2.yml
vendored
@ -5,12 +5,14 @@ on:
|
||||
branches:
|
||||
- 3.2
|
||||
workflow_dispatch:
|
||||
# Every week at 8am on Mondays, publish the 3.2 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 8 * * 1"
|
||||
|
||||
env:
|
||||
BUILD_VERSION: "3.2"
|
||||
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||
GIT_BRANCH: "3.2"
|
||||
|
||||
jobs:
|
||||
|
||||
@ -18,12 +20,15 @@ jobs:
|
||||
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.6.0
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Setup Buildx
|
||||
id: buildx
|
||||
@ -33,31 +38,31 @@ jobs:
|
||||
id: docker_meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ github.repository }}
|
||||
images: ${{ env.REPO }}
|
||||
labels: |
|
||||
org.opencontainers.image.version=${{ env.BUILD_VERSION }}
|
||||
org.opencontainers.image.version=${{ env.GIT_BRANCH }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
org.opencontainers.image.title=${{ github.repository }}
|
||||
org.opencontainers.image.title=${{ env.REPO }}
|
||||
|
||||
- name: GitHub login
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
uses: docker/login-action@v3.4.0
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6.16.0
|
||||
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
|
||||
build-args: BUILD_VERSION
|
||||
build-args: GIT_BRANCH
|
||||
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
|
||||
ghcr.io/${{ env.REPO }}:${{ env.GIT_BRANCH }}
|
||||
ghcr.io/${{ env.REPO }}:latest
|
||||
|
60
.github/workflows/unit_tests_ubuntu.yml
vendored
Normal file
60
.github/workflows/unit_tests_ubuntu.yml
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
---
|
||||
name: testssl.sh CI with Ubuntu
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'utils/**'
|
||||
- 'doc/**'
|
||||
- 'bin/**'
|
||||
- '**.md'
|
||||
- '**.pem'
|
||||
- '**.pdf'
|
||||
- '**.html'
|
||||
- 'LICENSE'
|
||||
- 'Dockerfile'
|
||||
- 'Dockerfile.alpine'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# see https://github.com/shogo82148/actions-setup-perl
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: ['ubuntu-24.04']
|
||||
perl: ['5.38']
|
||||
name: Unit test on ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up perl
|
||||
uses: shogo82148/actions-setup-perl@v1
|
||||
with:
|
||||
perl-version: ${{ matrix.perl }}
|
||||
|
||||
- name: Install OS dependencies
|
||||
run: |
|
||||
sudo apt install dnsutils jsonlint
|
||||
printf "%s\n" "----------"
|
||||
perl -V
|
||||
printf "%s\n" "----------"
|
||||
curl --version
|
||||
printf "%s\n" "----------"
|
||||
openssl version -a
|
||||
printf "%s\n" "----------"
|
||||
bash --version
|
||||
printf "%s\n" "----------"
|
||||
|
||||
- name: Install perl modules
|
||||
run: |
|
||||
cpanm --notest Test::More
|
||||
cpanm --notest Data::Dumper
|
||||
cpanm --notest JSON
|
||||
cpanm --notest Text::Diff
|
||||
|
||||
- name: run it
|
||||
run: |
|
||||
prove -v t
|
Reference in New Issue
Block a user