test(s2n-quic-platform): refactor testing IO provider to use tasks/queues #1641
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: | |
- main | |
release: | |
types: [published] | |
name: release | |
jobs: | |
qns: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Compute tags | |
id: tags | |
run: | | |
DOCKER_IMAGE=public.ecr.aws/s2n/s2n-quic-qns | |
VERSION=main | |
if [[ $GITHUB_REF == refs/tags/* ]]; then | |
VERSION=${GITHUB_REF#refs/tags/v} | |
fi | |
TAGS="${DOCKER_IMAGE}:${VERSION}" | |
# mark the latest on release | |
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then | |
TAGS="$TAGS,${DOCKER_IMAGE}:latest" | |
fi | |
echo "::set-output name=tags::${TAGS}" | |
- name: Login to Amazon Elastic Container Registry Public | |
uses: docker/[email protected] | |
if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name | |
with: | |
registry: public.ecr.aws | |
username: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Build and push image | |
uses: docker/build-push-action@v4 | |
with: | |
tags: ${{ steps.tags.outputs.tags }} | |
file: quic/s2n-quic-qns/etc/Dockerfile.build | |
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }} |