Skip to content

Commit

Permalink
add push to openssl3
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Bozarth <[email protected]>
  • Loading branch information
ajbozarth committed Nov 26, 2024
1 parent 80dd76d commit 00933b8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/openssl3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,27 @@ on:
required: false
default: false
type: boolean
release_tag:
description: "Which tag to use when pushing the docker image"
required: false
type: string
workflow_dispatch:
inputs:
build_main:
description: "Build using liboqs and oqsprovider main branches"
required: false
default: false
type: boolean
release_tag:
description: "Which tag to use when pushing the docker image"
required: false
type: string

env:
build-args: |
LIBOQS_TAG=main
OQSPROVIDER_TAG=main
push: ${{ github.repository == 'open-quantum-safe/oqs-demos' && github.ref == 'refs/heads/main' }}

jobs:
build:
Expand All @@ -40,6 +49,11 @@ jobs:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: ${{ env.push == true }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -61,3 +75,17 @@ jobs:
run: |
docker run --rm --name oqs-ossl3 oqs-ossl3 sh -c "openssl list -providers; /opt/openssl32/bin/serverstart.sh; sleep 2; echo 'GET /' | openssl s_client -connect localhost --groups kyber768 --CAfile /opt/openssl32/bin/CA.crt" &&
docker run --rm --name oqs-ossl3 oqs-ossl3 sh -c "KEM_ALG=p521_frodo1344aes /opt/openssl32/bin/serverstart.sh; sleep 2; echo 'GET /' | openssl s_client -connect localhost --groups p521_frodo1344aes --CAfile /opt/openssl32/bin/CA.crt"
- name: Push Docker image to registries
if: ${{ env.push == true }}
uses: docker/build-push-action@v6
with:
push: true
context: openssl3
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
tags: |
openquantumsafe/openssl3:${{ inputs.release_tag || 'latest' }}
ghcr.io/openquantumsafe/openssl3:${{ inputs.release_tag || 'latest' }}

0 comments on commit 00933b8

Please sign in to comment.