name: Build and Deploy on: push: branches: - main tags: - 'v*' jobs: build-push: name: Build & Push runs-on: ubuntu-latest if: github.event_name == 'push' steps: - uses: actions/checkout@v4 - name: Docker metadata id: meta uses: docker/metadata-action@v5 with: images: ${{ vars.REGISTRY }}/${{ gitea.repository_owner }}/sixflagssupercalendar tags: | type=semver,pattern={{version}} type=raw,value=latest,enable={{is_default_branch}} - name: Log in to Gitea registry uses: docker/login-action@v3 with: registry: ${{ vars.REGISTRY }} username: ${{ gitea.actor }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push uses: docker/build-push-action@v6 with: context: . push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}