-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (35 loc) · 986 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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