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 235541e commit f3dd085
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .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 docker tag to push to"
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 docker tag to push to"
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@v4
- 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 @@ -54,10 +68,24 @@ jobs:
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ (github.event.inputs.build_main == 'true') && env.build-args || null }}
${{ (inputs.build_main == 'true') && env.build-args || null }}
tags: oqs-ossl3

- name: Test openssl3 with provider - one baseline and one hybrid QSC algorithm
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
uses: docker/build-push-action@v6
with:
push: true
context: openssl3
platforms: ${{ matrix.platform }}
build-args: |
MAKE_DEFINES=-j4
${{ (inputs.build_main == 'true') && env.build-args || null }}
tags: |
openquantumsafe/openssl3:${{ inputs.release_tag || 'latest' }}
ghcr.io/open-quantum-safe/openssl3:${{ inputs.release_tag || 'latest' }}

0 comments on commit f3dd085

Please sign in to comment.