1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

fix: CI pipeline + added lint

This commit is contained in:
2024-10-09 13:14:05 +00:00
parent d1da14da22
commit eaac40f806
+19 -3
View File
@@ -36,6 +36,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: docker/metadata-action@v4
id: meta
with:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
tags: latest
- name: "Login to Docker Hub" - name: "Login to Docker Hub"
if: github.event_name != 'pull_request' || github.event.inputs.push == 'true' if: github.event_name != 'pull_request' || github.event.inputs.push == 'true'
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -55,6 +63,14 @@ jobs:
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' || github.event.inputs.push == 'true' }} push: ${{ github.event_name != 'pull_request' || github.event.inputs.push == 'true' }}
tags: | tags: ${{ steps.meta.outputs.tags }}
${{ github.repository }}
ghcr.io/${{ github.repository }} lint:
runs-on: ubuntu-latest
container: node:22
steps:
- uses: actions/checkout@v4
- run: yarn install
- run: yarn lint