This commit is contained in:
@@ -42,15 +42,6 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-buildx-
|
||||
|
||||
|
||||
- name: inject cache into docker
|
||||
uses: reproducible-containers/buildkit-cache-dance@v3.1.0
|
||||
with:
|
||||
cache-source: /opt/hostedtoolcache/pip
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -58,20 +49,19 @@ jobs:
|
||||
username: ${{ secrets.USERNAME_GITEA }}
|
||||
password: ${{ secrets.PASSWORD_GITEA }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest
|
||||
gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:${{ env.next_version }}
|
||||
cache-from: type=local,src=/opt/hostedtoolcache/.buildx-cache
|
||||
cache-to: type=local,dest=/opt/hostedtoolcache/.buildx-cache-new,mode=max
|
||||
|
||||
- name: Move cache
|
||||
- name: Build image
|
||||
run: |
|
||||
rm -rf /opt/hostedtoolcache/.buildx-cache
|
||||
mv /opt/hostedtoolcache/.buildx-cache-new /opt/hostedtoolcache/.buildx-cache
|
||||
docker build \
|
||||
-t gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest \
|
||||
-t gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:${{ env.next_version }} \
|
||||
.
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
docker push gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:latest
|
||||
docker push gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:${{ env.next_version }}
|
||||
|
||||
|
||||
- name: update version in the variable
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user