feat(ci): add deployment workflow and update Dockerfile
All checks were successful
All checks were successful
This commit is contained in:
parent
b07a3a935a
commit
453fc719f7
3 changed files with 43 additions and 22 deletions
21
.gitea/workflows/deploy.yml
Normal file
21
.gitea/workflows/deploy.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
- "feat/deployment"
|
||||
paths:
|
||||
- "backend/**"
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build Docker Image
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build Image
|
||||
run: docker buildx build -f .docker/Dockerfile -t git.kjan.de/SZUT/casino-backend:latest .
|
||||
- name: Login
|
||||
run: echo ${DOCKER_PASS} | docker login git.kjan.de --username ${DOCKER_USER} --password-stdin
|
||||
- name Push
|
||||
run: docker push git.kja.de/SZUT/casino-backend:latest
|
Loading…
Add table
Add a link
Reference in a new issue