This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
||||
- name: Login to gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.tryton.geeraert.eu
|
||||
registry: gitea.geeraert.eu
|
||||
username: ${{ secrets.USERNAME_GITEA }}
|
||||
password: ${{ secrets.PASSWORD_GITEA }}
|
||||
|
||||
@@ -44,23 +44,23 @@ jobs:
|
||||
run: |
|
||||
docker build \
|
||||
-f infra/testing/dockerfile \
|
||||
--build-arg ALLOWED_HOSTS='django-testing.tryton.geeraert.eu' \
|
||||
--build-arg ALLOWED_HOSTS='django-testing.geeraert.eu' \
|
||||
--build-arg DEBUG='True' \
|
||||
--build-arg CACHE_BUST=${{ env.next_version }} \
|
||||
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:latest \
|
||||
-t gitea.tryton.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }} \
|
||||
-t gitea.geeraert.eu/pi-ux-ce/django-testing:latest \
|
||||
-t gitea.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }} \
|
||||
.
|
||||
|
||||
- name: Push image
|
||||
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 }}
|
||||
docker push gitea.geeraert.eu/pi-ux-ce/django-testing:latest
|
||||
docker push gitea.geeraert.eu/pi-ux-ce/django-testing:${{ env.next_version }}
|
||||
|
||||
- name: update version in the variable
|
||||
run: |
|
||||
curl -X PUT -H "Content-Type: application/json" \
|
||||
--user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
|
||||
https://gitea.tryton.geeraert.eu/api/v1/repos/pi-ux-ce/${{ github.event.repository.name }}/actions/variables/VERSION_TESTING \
|
||||
https://gitea.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
|
||||
|
||||
Reference in New Issue
Block a user