Skip to content

add fr map

add fr map #79

Workflow file for this run

on:
push:
branches: ['main']
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "JS anti caching"
run: |
DEVELOPMENT_SERVER=$(openssl rand -hex 12)
sed -i "s/DEVELOPMENT_SERVER/$DEVELOPMENT_SERVER/" gpxviewr/baseweb/templates/base.html
- name: "install nodejs"
uses: actions/setup-node@v4
with:
node-version: 19
- name: "build webpack"
working-directory: ./frontend
run: |
npm install
npm run build
- name: Extract metadata (tags, labels) for Docker
id: meta-web
uses: docker/metadata-action@v5
with:
images: ghcr.io/hggh/gpx-viewer/web
- name: Build and push Docker image
id: push-wev
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/hggh/gpx-viewer/web:latest
labels: ${{ steps.meta-web.outputs.labels }}