feat(ci): add deployment workflow and update Dockerfile
All checks were successful
All checks were successful
This commit is contained in:
parent
b07a3a935a
commit
4f377e1e87
3 changed files with 42 additions and 22 deletions
20
.gitea/workflows/deploy.yml
Normal file
20
.gitea/workflows/deploy.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "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