on: push: branches: - master env: REGISTRY: forgejo.sbox.hornwitser.no REGISTRY_IMAGE: forgejo.sbox.hornwitser.no/furnavia/schedule-demo jobs: build: runs-on: docker container: image: forgejo.sbox.hornwitser.no/furnavia/builder:latest steps: - name: Authenticate uses: docker/login-action@v3 with: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_TOKEN }} registry: ${{ env.REGISTRY }} - name: Get commit info id: info shell: bash run: | tee -a ${GITHUB_OUTPUT} < ~/.kube/config <<"EOF" ${{ secrets.KUBECONFIG_CONTENT }} EOF kubectl config view kubectl config use-context flux-sandbox - name: Deploy run: | kubectl rollout restart \ -n schedule-demo \ deployment website