Skip to content

Commit

Permalink
ci: automate quic-network-simulator docker image build & push
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Jan 15, 2024
1 parent 6fb7a6c commit 9906f21
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/interop-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: qns (quic-network-simulator)

on:
push:
branches:
- 'docker' # TODO: update

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

# TODO: needed?
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: mxinden/neqo-qns:latest
context: qns
2 changes: 1 addition & 1 deletion qns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.45.2
RUST_VERSION=1.70.0

RUN set -eux; \
curl -sSLf "https://static.rust-lang.org/rustup/archive/1.22.1/x86_64-unknown-linux-gnu/rustup-init" -o rustup-init; \
Expand Down

0 comments on commit 9906f21

Please sign in to comment.