forked from CGM_Public/pretix_original
All checks were successful
Build Deploy email notification tool / Apply-Kubernetes-Resources (push) Successful in 10s
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
name: Build Deploy email notification tool
|
|
run-name: ${{ gitea.actor }} building new version of the email notification tool
|
|
on:
|
|
push: # Baut bei jedem Push (Branches + Tags)
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Apply-Kubernetes-Resources:
|
|
runs-on: podman
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Login to Docker Registry
|
|
run: podman login -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_TOKEN }} cr.ortlerstrasse.de
|
|
|
|
- name: Set Docker Image Tag
|
|
run: |
|
|
if [[ "${{ gitea.ref }}" == refs/tags/* ]]; then
|
|
echo "TAG_NAME=${{ gitea.ref_name }}" >> $GITHUB_ENV
|
|
else
|
|
echo "TAG_NAME=latest" >> $GITHUB_ENV
|
|
fi
|
|
|
|
- name: Build Docker image
|
|
run: podman build -t cr.ortlerstrasse.de/cgo/pretix:${{ env.TAG_NAME }} .
|
|
|
|
- name: Push Docker image
|
|
run: |
|
|
podman push cr.ortlerstrasse.de/cgo/pretix:${{ env.TAG_NAME }}
|
|
echo "Image pushed successfully: cr.ortlerstrasse.de/cgo/pretix:${{ env.TAG_NAME }}" |