mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-02 09:03:08 +00:00
Update dist workflow.
This commit is contained in:
parent
4f90c87784
commit
e7dc3beafa
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@ -48,18 +48,31 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v20
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-22.11
|
||||||
-
|
-
|
||||||
name: Cargo cache
|
name: Cargo cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: .rust/
|
path: |
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
target/
|
||||||
|
key: ${{ runner.os }}-cargo-dist-${{ hashFiles('**/Cargo.lock') }}
|
||||||
-
|
-
|
||||||
name: Build UI
|
name: Build UI
|
||||||
run: make build-ui
|
run: make build-ui
|
||||||
|
-
|
||||||
|
name: Install dev dependencies
|
||||||
|
run: nix-shell --command "make dev-dependencies"
|
||||||
-
|
-
|
||||||
name: Build distributables
|
name: Build distributables
|
||||||
run: make dist
|
run: nix-shell --command "make dist"
|
||||||
-
|
-
|
||||||
name: Configure AWS credentials
|
name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
@ -72,19 +85,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
aws s3 sync dist s3://builds.loraserver.io/chirpstack
|
aws s3 sync dist s3://builds.loraserver.io/chirpstack
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
-
|
|
||||||
name: Make cache accessible to caching action
|
|
||||||
run: |
|
|
||||||
sudo chown $(whoami):$(whoami) -R .rust
|
|
||||||
|
|
||||||
docker:
|
|
||||||
needs: tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
@ -115,8 +115,9 @@ jobs:
|
|||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
context: .
|
||||||
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
-
|
-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user