2024-03-27 14:36:45 +00:00
|
|
|
name: Build and Push Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Log in to StuVe Gitea Container Registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: git.stuve.uni-ulm.de
|
|
|
|
username: ${{ secrets.USER_NAME }}
|
|
|
|
password: ${{ secrets.USER_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
2024-03-27 15:00:59 +00:00
|
|
|
tags: git.stuve.uni-ulm.de/stuve-it/stuve-it-backend:latest
|
2024-03-27 14:36:45 +00:00
|
|
|
|
2024-03-27 16:58:49 +00:00
|
|
|
- name: Trigger webhook
|
|
|
|
run: curl -X POST ${{ secrets.WEBHOOK_URL }}
|