mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-18 20:57:55 +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
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Install Nix
|
||||
uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-22.11
|
||||
-
|
||||
name: Cargo cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .rust/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-dist-${{ hashFiles('**/Cargo.lock') }}
|
||||
-
|
||||
name: Build UI
|
||||
run: make build-ui
|
||||
-
|
||||
name: Install dev dependencies
|
||||
run: nix-shell --command "make dev-dependencies"
|
||||
-
|
||||
name: Build distributables
|
||||
run: make dist
|
||||
run: nix-shell --command "make dist"
|
||||
-
|
||||
name: Configure AWS credentials
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
@ -72,19 +85,6 @@ jobs:
|
||||
run: |
|
||||
aws s3 sync dist s3://builds.loraserver.io/chirpstack
|
||||
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
|
||||
id: meta
|
||||
@ -115,8 +115,9 @@ jobs:
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||
context: .
|
||||
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
-
|
||||
|
Loading…
Reference in New Issue
Block a user