This commit is contained in:
@@ -35,14 +35,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run --rm eventhub-api-tests:latest
|
docker run --rm eventhub-api-tests:latest
|
||||||
|
|
||||||
# ---------- Пуш основного образа в Registry (опционально) ----------
|
- name: Login to Gitea Container Registry
|
||||||
- name: Push eventhub image to Gitea Registry
|
|
||||||
if: success()
|
if: success()
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
registry: git.sabilin.com
|
||||||
push: true
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
tags: git.sabilin.com/eventhub/eventhub:test
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Tag and push eventhub image
|
||||||
|
if: success()
|
||||||
|
run: |
|
||||||
|
docker tag eventhub:latest git.sabilin.com/eventhub/eventhub:test
|
||||||
|
docker push git.sabilin.com/eventhub/eventhub:test
|
||||||
|
|
||||||
# ---------- Деплой на Snapdeploy ----------
|
# ---------- Деплой на Snapdeploy ----------
|
||||||
- name: Deploy to Snapdeploy
|
- name: Deploy to Snapdeploy
|
||||||
|
|||||||
Reference in New Issue
Block a user