35 lines
714 B
YAML
35 lines
714 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
REGISTRY: docker.lechner-systems.at
|
|
IMAGE_NAME: lechnersystems/maintenance
|
|
|
|
jobs:
|
|
javascript:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check JavaScript syntax
|
|
run: node --check script.js
|
|
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
run: docker build --build-arg APP_VERSION=${{ gitea.sha }} --build-arg VCS_REF=${{ gitea.sha }} --tag "$REGISTRY/$IMAGE_NAME:ci-${{ gitea.sha }}" .
|