Remove the permit list from the controller

This commit is contained in:
Eugene Burmakin 2024-04-07 22:36:39 +02:00
parent 8d7cbda26a
commit 3ff35b3f8f
3 changed files with 6 additions and 9 deletions

View file

@ -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

View file

@ -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)

View file

@ -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