This commit is contained in:
@@ -22,9 +22,6 @@ jobs:
|
|||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Compute next version
|
- name: Compute next version
|
||||||
id: versioning
|
id: versioning
|
||||||
run: |
|
run: |
|
||||||
@@ -43,19 +40,21 @@ jobs:
|
|||||||
username: ${{ secrets.USERNAME_GITEA }}
|
username: ${{ secrets.USERNAME_GITEA }}
|
||||||
password: ${{ secrets.PASSWORD_GITEA }}
|
password: ${{ secrets.PASSWORD_GITEA }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build image
|
||||||
uses: docker/build-push-action@v6
|
run: |
|
||||||
with:
|
docker build \
|
||||||
context: .
|
-f infra/testing/dockerfile \
|
||||||
file: infra/testing/dockerfile
|
--build-arg ALLOWED_HOSTS='django-testing.tryton.geeraert.eu' \
|
||||||
push: true
|
--build-arg DEBUG='True' \
|
||||||
build-args: |
|
--build-arg CACHE_BUST=${{ env.next_version }} \
|
||||||
ALLOWED_HOSTS='django-testing.tryton.geeraert.eu'
|
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:latest \
|
||||||
DEBUG='True'
|
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }} \
|
||||||
CACHE_BUST=${{ env.next_version }}
|
.
|
||||||
tags: |
|
|
||||||
gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:latest
|
- name: Push image
|
||||||
gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }}
|
run: |
|
||||||
|
docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:latest
|
||||||
|
docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }}
|
||||||
|
|
||||||
- name: update version in the variable
|
- name: update version in the variable
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user