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 }}"