-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (49 loc) · 1.35 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "Publish Releases"
on:
release:
types: [published]
jobs:
flakehub:
name: "Publish to Flakehub"
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v4"
with:
ref: "${{ github.ref_name }}"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
name: "edgee-cloud/edgee"
tag: "${{ github.ref_name }}"
cratesio:
name: Publish to Crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo fetch
- name: cargo publish
run: cargo publish
docker:
name: "Publish to Docker Hub"
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v4"
with:
ref: "${{ github.ref_name }}"
- uses: "docker/login-action@v2"
with:
username: "${{ secrets.DOCKER_USERNAME }}"
password: "${{ secrets.DOCKER_PASSWORD }}"
- run: "docker build -t edgeecloud/edgee:${{ github.ref_name }} ."
- run: "docker push edgeecloud/edgee:${{ github.ref_name }}"