d
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
Martin Cholewa 2025-01-20 15:24:43 +01:00
parent 6fd1aaaded
commit 4ce4d1bcaf

View File

@ -1,34 +0,0 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
npm install
- name: Run tests
run: |
npm test
- name: Build Docker image
run: |
docker build -t my-app .
- name: Push Docker image to Gitea registry
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push my-app:latest