valhalla-app-container/.forgejo/workflows/build.yaml

47 lines
1.6 KiB
YAML
Raw Normal View History

2024-08-03 00:26:51 -04:00
name: Build And Publish Docker
on:
push:
branches:
2024-08-03 00:27:20 -04:00
- "main"
2024-08-03 00:26:51 -04:00
jobs:
build:
runs-on: debian-bookworm
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install deps
2024-08-03 01:21:09 -04:00
run: curl -fsSL https://get.docker.com -o get-docker.sh && DEBIAN_FRONTEND=noninteractive sh get-docker.sh
2024-08-03 00:26:51 -04:00
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to Self-Hosted Registry
uses: docker/login-action@v2
with:
registry: git.myco.systems
2024-08-03 00:26:51 -04:00
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Set ENV
run: |
rm ./valhalla-app/.env
echo "SKIP_PREFLIGHT_CHECK=true" >> ./valhalla-app/.env
echo "REACT_APP_VALHALLA_URL=http://localhost:8002" >> ./valhalla-app/.env
echo "REACT_APP_NOMINATIM_URL=https://nominatim.openstreetmap.org" >> ./valhalla-app/.env
echo "REACT_APP_TILE_SERVER_URL=\"https://tile.openstreetmap.org/{z}/{x}/{y}.png\"" >> ./valhalla-app/.env
echo "REACT_APP_CENTER_COORDS=\"33.76471961134097,-84.34884911233736\"" >> ./valhalla-app/.env
2024-08-03 00:27:56 -04:00
- name: Build and Push
2024-08-03 00:26:51 -04:00
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./valhalla-app
file: ./valhalla-app/Dockerfile
2024-08-03 00:42:04 -04:00
platforms: linux/arm64/v8
2024-08-03 00:26:51 -04:00
push: true
tags: |
"git.myco.systems/brooke/valhalla-app-container:latest"