diff --git a/.gitea/workflows/dockerfile_testing_runner.yaml b/.gitea/workflows/dockerfile_testing_runner.yaml index 29df00c..7857cac 100644 --- a/.gitea/workflows/dockerfile_testing_runner.yaml +++ b/.gitea/workflows/dockerfile_testing_runner.yaml @@ -59,4 +59,11 @@ jobs: https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION_TESTING \ -d "{\"Value\":\"$next_version\"}" + - name: Rollout Django to force pulling the new image + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: rollout restart deployment django-testing -n django-testing + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.gitea/workflows/kubectl_testing_runner.yaml b/.gitea/workflows/kubectl_testing_runner.yaml new file mode 100644 index 0000000..1f1e50a --- /dev/null +++ b/.gitea/workflows/kubectl_testing_runner.yaml @@ -0,0 +1,23 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: + push: + branches: + - "testing" + tags-ignore: + - '*' + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + + - name: Rollout Django to force pulling the new image + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: rollout restart deployment django-testing -n django-testing + + - run: echo "🍏 This job's status is ${{ job.status }}."