feat: build and publish docker image action workflow #1
@ -17,12 +17,11 @@ jobs:
|
||||
|
||||
- name: Build Docker Image
|
||||
run: |
|
||||
docker build \
|
||||
-t git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} .
|
||||
docker build -t git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }} .
|
||||
|
||||
- name: Push Docker Image
|
||||
run: |
|
||||
docker tag git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} git.ambeles.nl/bedroomghost/gpx-viewer:latest
|
||||
docker push git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }}
|
||||
docker push git.ambeles.nl/bedroomghost/gpx-viewer:latest
|
||||
docker tag git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }} git.ambeles.nl/bedroomghost/gpx-studio:latest
|
||||
docker push git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }}
|
||||
docker push git.ambeles.nl/bedroomghost/gpx-studio:latest
|
||||
|
||||
@ -22,6 +22,7 @@ EXPOSE 5173
|
||||
# Create a simple startup script that injects the token from env var
|
||||
RUN echo '#!/bin/sh' > /app/start.sh && \
|
||||
echo 'echo "PUBLIC_MAPBOX_TOKEN=$PUBLIC_MAPBOX_TOKEN" > /app/website/.env' >> /app/start.sh && \
|
||||
echo 'find /app/website -type f -name "*.js" -o -name "*.ts" -o -name "*.svelte" | xargs sed -i "s|https://brouter.gpx.studio|https://brouter.ambeles.nl|g"' >> /app/start.sh && \
|
||||
echo 'cd /app/website && npm run dev -- --host 0.0.0.0' >> /app/start.sh && \
|
||||
chmod +x /app/start.sh
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user