2024-03-14 19:55:05 +00:00
|
|
|
name: Build and Push Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2024-03-14 20:04:29 +00:00
|
|
|
- name: Log in to StuVe Gitea Container Registry
|
2024-03-14 19:55:05 +00:00
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: git.stuve.uni-ulm.de
|
2024-03-14 20:04:29 +00:00
|
|
|
username: ${{ secrets.USER_NAME }}
|
|
|
|
password: ${{ secrets.USER_PASSWORD }}
|
2024-03-14 19:55:05 +00:00
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
2024-03-14 20:08:10 +00:00
|
|
|
tags: git.stuve.uni-ulm.de/stuve-it/wiki-js-customization:latest
|
2024-03-14 20:39:23 +00:00
|
|
|
|
|
|
|
- name: Trigger webhook for Portainer
|
|
|
|
run: curl -X POST ${{ secrets.WEBHOOK_URL }}
|