Add prettier for formatting
Some checks failed
Build & Push Docker Image / Check formatting (push) Failing after 42s
Build & Push Docker Image / Build & Push Docker Image (push) Successful in 19s

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2024-01-26 21:46:50 +01:00
parent b4e0a41991
commit b419038bf8
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
7 changed files with 120 additions and 34 deletions

View file

@ -3,19 +3,39 @@ name: Build & Push Docker Image
on: push
jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: registry.gitlab.com/severinkaderli/registry
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: registry.gitlab.com/severinkaderli/registry:home.kaderli.dev
check-format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://git.kaderli.dev/api/packages/severinkaderli/npm/
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
build-and-push-docker-image:
name: Build & Push Docker Image
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: registry.gitlab.com/severinkaderli/registry
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: registry.gitlab.com/severinkaderli/registry:home.kaderli.dev