name: Build, Test, and Deploy on: push: branches: [main] jobs: build-and-deploy: runs-on: self-hosted steps: - name: Checkout uses: actions/checkout@v4 - name: Build and Package Docker Image run: | docker build \ -t git.ch4t.buzz/buzzparty/openforce:${{ github.sha }} \ -t git.ch4t.buzz/buzzparty/openforce:latest \ . - name: Push to Forgejo Registry run: | docker push git.ch4t.buzz/buzzparty/openforce:${{ github.sha }} docker push git.ch4t.buzz/buzzparty/openforce:latest - name: Roll out to Kubernetes run: | kubectl set image deployment/openforce \ openforce=git.ch4t.buzz/buzzparty/openforce:${{ github.sha }} \ -n default kubectl rollout status deployment/openforce -n default --timeout=180s