now reverting
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6m15s

This commit is contained in:
pierre geeraert
2025-12-04 23:52:19 +00:00
parent 779e8a8b0f
commit 874779d230
+10 -10
View File
@@ -8,17 +8,17 @@ on:
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
env: env:
RUNNER_TOOL_CACHE: /data RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
#- name: Check out repository code - name: Check out repository code
# uses: actions/checkout@v4 uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: List files in the repository - name: List files in the repository
run: | run: |
ls / ls ${{ gitea.workspace }}
- name: Compute next version - name: Compute next version
id: versioning id: versioning
run: | run: |
@@ -41,7 +41,7 @@ jobs:
- name: inject cache into docker - name: inject cache into docker
uses: reproducible-containers/buildkit-cache-dance@v3.1.0 uses: reproducible-containers/buildkit-cache-dance@v3.1.0
with: with:
cache-source: /root/.cache/pip cache-source: /root/.cache/pip
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -58,18 +58,18 @@ jobs:
with: with:
push: true push: true
tags: | tags: |
gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest
gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }} gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }}
cache-from: type=local,src=${{ runner.temp }}/.buildx-cache cache-from: type=local,src=${{ runner.temp }}/.buildx-cache
cache-to: type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max cache-to: type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max
- name: Rollout Django to force pulling the new image - name: Rollout Django to force pulling the new image
uses: actions-hub/kubectl@master uses: actions-hub/kubectl@master
env: env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with: with:
args: rollout restart deployment django -n django args: rollout restart deployment django -n django
- name: Rollout Celery worker to force pulling the new image - name: Rollout Celery worker to force pulling the new image
uses: actions-hub/kubectl@master uses: actions-hub/kubectl@master
env: env: