Skip to content

Commit

Permalink
chore: github actions test for s2n build
Browse files Browse the repository at this point in the history
fix github actions
  • Loading branch information
junkurihara committed Jul 30, 2023
1 parent b8d970d commit 715740c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- develop
- "feat/s2n-quic"

env:
REGISTRY_IMAGE: jqtype/rpxy
Expand Down Expand Up @@ -85,6 +86,23 @@ jobs:
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}

- name: Nightly build and push s2n-quic
if: ${{ env.BRANCH == 'feat/s2n-quic' }}
uses: docker/build-push-action@v4
with:
context: .
build-args: |
"CARGO_FEATURES=--no-default-features --features http3-s2n"
"ADDITIONAL_DEPS=pkg-config libssl-dev cmake libclang1 gcc g++"
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:nightly-s2n
file: ./docker/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64
labels: ${{ steps.meta.outputs.labels }}

- name: Nightly build and push slim
if: ${{ env.BRANCH == 'develop' }}
uses: docker/build-push-action@v4
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ services:
- 127.0.0.1:8443:8443
build:
context: ../
args:
- "CARGO_FEATURES=--no-default-features --features http3-s2n"
- "ADDITIONAL_DEPS=pkg-config libssl-dev cmake libclang1 gcc g++"
# args: # Specify when build quic-s2n version
# - "CARGO_FEATURES=--no-default-features --features http3-s2n"
# - "ADDITIONAL_DEPS=pkg-config libssl-dev cmake libclang1 gcc g++"
dockerfile: ./docker/Dockerfile
platforms: # Choose your platforms
# - "linux/amd64"
Expand Down

0 comments on commit 715740c

Please sign in to comment.