Skip to content

Version 1.40.0

Version 1.40.0 #118

Workflow file for this run

name: Server Release
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
release:
name: release x86_64-unknown-linux-gnu
runs-on: ubuntu-24.04
environment: release
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Compile server
run: cargo build --release --manifest-path server/svix-server/Cargo.toml
- name: Release
uses: actions/upload-artifact@v3
with:
name: svix-server-x86_64-unknown-linux-gnu
path: server/target/release/svix-server
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
name: release docker
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Login Docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Derive Version Numbers
run: |
export REPO="${{ secrets.DOCKERHUB_USERNAME }}/svix-server"
echo DOCKER_TAGS="$(echo "${{ github.event.release.tag_name }}" | sed -E "s#v([0-9]+)\.([0-9]+)\.([0-9]+)#${REPO}:latest,${REPO}:v\1.\2.\3,${REPO}:v\1.\2,${REPO}:v\1#")" >> "$GITHUB_ENV"
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./server
file: ./server/Dockerfile
push: true
tags: ${{ env.DOCKER_TAGS }}
platforms: linux/amd64,linux/arm64