mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Remove the permit list from the controller
This commit is contained in:
parent
8d7cbda26a
commit
3ff35b3f8f
3 changed files with 6 additions and 9 deletions
7
.github/workflows/build_and_push.yml
vendored
7
.github/workflows/build_and_push.yml
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
name: Docker image build and push
|
name: Docker image build and push
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
release:
|
||||||
|
types: [created]
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-docker:
|
build-and-push-docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -17,8 +18,6 @@ jobs:
|
||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-buildx-
|
${{ runner.os }}-buildx-
|
||||||
- name: Echo git tag
|
|
||||||
run: echo ${{ github.ref }}
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3.1.0
|
uses: docker/login-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
|
|
@ -30,7 +29,7 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: freikin/dawarich:latest,freikin/dawarich:${{ github.run_number }}
|
tags: freikin/dawarich:latest,freikin/dawarich:${{ github.event.release.tag_name }}
|
||||||
platforms: linux/amd64,linux/arm64/v8
|
platforms: linux/amd64,linux/arm64/v8
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
|
|
|
||||||
3
Makefile
3
Makefile
|
|
@ -1,7 +1,8 @@
|
||||||
build_and_push:
|
build_and_push:
|
||||||
git tag -a "$(version)" -f -m "$(version)"
|
git tag -a "$(version)" -f -m "$(version)"
|
||||||
docker build . -t dawarich:$(version) --platform=linux/amd64
|
docker build . -t dawarich:$(version) --platform=linux/amd64
|
||||||
docker tag dawarich:$(version) registry.chibi.rodeo/dawarich:$(version) registry.chibi.rodeo/dawarich:latest
|
docker tag dawarich:$(version) registry.chibi.rodeo/dawarich:$(version)
|
||||||
|
docker tag registry.chibi.rodeo/dawarich:$(version) registry.chibi.rodeo/dawarich:latest
|
||||||
docker push registry.chibi.rodeo/dawarich:$(version)
|
docker push registry.chibi.rodeo/dawarich:$(version)
|
||||||
docker tag freikin/dawarich:$(version) freikin/dawarich:latest
|
docker tag freikin/dawarich:$(version) freikin/dawarich:latest
|
||||||
docker push freikin/dawarich:$(version)
|
docker push freikin/dawarich:$(version)
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,6 @@ class Api::V1::PointsController < ApplicationController
|
||||||
private
|
private
|
||||||
|
|
||||||
def point_params
|
def point_params
|
||||||
params.permit(
|
params.permit!
|
||||||
:lat, :lon, :bs, :batt, :p, :alt, :acc, :vac, :vel, :conn, :SSID, :BSSID, :m, :tid, :tst,
|
|
||||||
:topic, :_type, :cog, :t, inrids: [], inregions: [], point: {}
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue