Skip to content

Publish releases

Publish releases #13

Workflow file for this run

name: Publish releases
on:
release:
types: [published]
jobs:
cratesio:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: cargo publish
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
docker:
name: Publish to DockerHub
strategy:
matrix:
platform:
- os: ubuntu-latest
platform: linux/amd64
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- uses: docker/build-push-action@v6
with:
push: true
tags: |
edgeecloud/edgee:${{ github.ref_name }}
edgeecloud/edgee:latest