summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/codespell.yml16
-rw-r--r--.github/workflows/docker-3.2.yml63
-rw-r--r--.github/workflows/test.yml40
3 files changed, 119 insertions, 0 deletions
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 0000000..c41d337
--- /dev/null
+++ b/.github/workflows/codespell.yml
@@ -0,0 +1,16 @@
+---
+name: Codespell
+on: [push, pull_request]
+permissions:
+ contents: read
+
+jobs:
+ codespell:
+ name: Check for spelling errors
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: codespell-project/actions-codespell@master
+ with:
+ skip: ca_hashes.txt,tls_data.txt,*.pem,OPENSSL-LICENSE.txt,CREDITS.md,openssl.cnf
+ ignore_words_list: borken,gost,ciph,ba,bloc,isnt,chello,fo,alle,anull
diff --git a/.github/workflows/docker-3.2.yml b/.github/workflows/docker-3.2.yml
new file mode 100644
index 0000000..8f01da6
--- /dev/null
+++ b/.github/workflows/docker-3.2.yml
@@ -0,0 +1,63 @@
+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.0.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.0.0
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build and push
+ uses: docker/build-push-action@v5.0.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
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..bb69122
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,40 @@
+name: testssl.sh CI
+
+on:
+ pull_request:
+ paths-ignore:
+ - 'utils/**'
+ - 'doc/**'
+ - 'bin/**'
+ - '**.md'
+ - '**.pem'
+ - '**.pdf'
+ - '**.html'
+ - 'LICENSE'
+ - 'Dockerfile'
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: ['ubuntu-22.04']
+ perl: ['5.26']
+ name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up perl
+ uses: shogo82148/actions-setup-perl@v1
+ with:
+ perl-version: ${{ matrix.perl }}
+ - run: perl -V
+ - name: Install deps
+ run: sudo apt install dnsutils jsonlint
+ - run: cpanm --notest Test::More
+ - run: cpanm --notest Data::Dumper
+ - run: cpanm --notest JSON
+ - run: cpanm --notest Text::Diff
+ - run: prove -v