Improve container images (#749)
* 🔒 chore(security): improve container image security * 👌 chore(review): add cron job to Dockerfile for periodic tasks
This commit is contained in:
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@@ -79,17 +79,9 @@ jobs:
|
||||
VERSION: ${{ needs.versioning.outputs.version }}
|
||||
run: |
|
||||
# Build db image
|
||||
cd db
|
||||
env GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o pocketbase_arm64
|
||||
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o pocketbase_amd64
|
||||
cd ..
|
||||
docker buildx build db/ --no-cache -t flomp/wanderer-db:$VERSION -t flomp/wanderer-db:latest --platform=linux/amd64,linux/arm64 --push
|
||||
|
||||
# Build web image
|
||||
export PUBLIC_VALHALLA_URL=https://valhalla1.openstreetmap.de
|
||||
cd web
|
||||
npm ci && npm run build
|
||||
cd ..
|
||||
docker buildx build web/ --no-cache -t flomp/wanderer-web:$VERSION -t flomp/wanderer-web:latest --platform=linux/amd64,linux/arm64 --push
|
||||
|
||||
# Build docs image
|
||||
|
||||
Reference in New Issue
Block a user