Rename workflow directory
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
cf5a2600c3
commit
edb31776d9
1 changed files with 0 additions and 0 deletions
42
.forgejo/workflows/push.yaml
Normal file
42
.forgejo/workflows/push.yaml
Normal file
|
@ -0,0 +1,42 @@
|
|||
on: push
|
||||
|
||||
jobs:
|
||||
check-format:
|
||||
name: Check formatting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Add custom npm package registry
|
||||
run: npm config set @severinkaderli:registry 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
|
||||
needs: check-format
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue