mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -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
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [created]
|
||||
jobs:
|
||||
build-and-push-docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -17,8 +18,6 @@ jobs:
|
|||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-buildx-
|
||||
- name: Echo git tag
|
||||
run: echo ${{ github.ref }}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3.1.0
|
||||
with:
|
||||
|
|
@ -30,7 +29,7 @@ jobs:
|
|||
context: .
|
||||
file: ./Dockerfile
|
||||
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
|
||||
cache-from: type=local,src=/tmp/.buildx-cache
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -1,7 +1,8 @@
|
|||
build_and_push:
|
||||
git tag -a "$(version)" -f -m "$(version)"
|
||||
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 tag freikin/dawarich:$(version) freikin/dawarich:latest
|
||||
docker push freikin/dawarich:$(version)
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ class Api::V1::PointsController < ApplicationController
|
|||
private
|
||||
|
||||
def point_params
|
||||
params.permit(
|
||||
:lat, :lon, :bs, :batt, :p, :alt, :acc, :vac, :vel, :conn, :SSID, :BSSID, :m, :tid, :tst,
|
||||
:topic, :_type, :cog, :t, inrids: [], inregions: [], point: {}
|
||||
)
|
||||
params.permit!
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue