chore(front): Update typescript-eslint monorepo to v8.19.1 (#2497) #6064
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Svelte CI | |
on: | |
push: | |
paths: | |
- .github/workflows/svelte.yaml | |
- front/** | |
tags: | |
- '*' | |
branches: | |
- '*' | |
pull_request: | |
paths: | |
- .github/workflows/svelte.yaml | |
- front/** | |
defaults: | |
run: | |
working-directory: front | |
jobs: | |
build-deploy-svelte: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build | |
uses: docker/build-push-action@v6 | |
with: | |
context: front | |
file: ./front/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: false | |
tags: ghcr.io/darkness4/train-station-front:latest | |
- name: Login to GHCR | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get the oci compatible version | |
if: startsWith(github.ref, 'refs/tags/') | |
id: get_version | |
run: | | |
OCI_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed 's/+/-/g' | sed -E 's/v(.*)/\1/g') | |
echo ::set-output name=VERSION::${OCI_VERSION} | |
- name: Build and export | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v6 | |
with: | |
context: front | |
file: ./front/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: | | |
ghcr.io/darkness4/train-station-front:latest | |
ghcr.io/darkness4/train-station-front:dev | |
ghcr.io/darkness4/train-station-front:${{ steps.get_version.outputs.VERSION }} |