This commit is contained in:
parent
cccc264a78
commit
51eb8cb4a2
@ -17,12 +17,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build -t git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }} .
|
||||||
-t git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} .
|
|
||||||
|
|
||||||
- name: Push Docker Image
|
- name: Push Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker tag git.ambeles.nl/bedroomghost/gpx-viewer:${{ github.sha }} 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-viewer:${{ github.sha }}
|
docker push git.ambeles.nl/bedroomghost/gpx-studio:${{ github.sha }}
|
||||||
docker push git.ambeles.nl/bedroomghost/gpx-viewer:latest
|
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
|
# Create a simple startup script that injects the token from env var
|
||||||
RUN echo '#!/bin/sh' > /app/start.sh && \
|
RUN echo '#!/bin/sh' > /app/start.sh && \
|
||||||
echo 'echo "PUBLIC_MAPBOX_TOKEN=$PUBLIC_MAPBOX_TOKEN" > /app/website/.env' >> /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 && \
|
echo 'cd /app/website && npm run dev -- --host 0.0.0.0' >> /app/start.sh && \
|
||||||
chmod +x /app/start.sh
|
chmod +x /app/start.sh
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user