Configure builder registry deployment
Some checks are pending
Build and deploy Docker image / build (push) Waiting to run
Some checks are pending
Build and deploy Docker image / build (push) Waiting to run
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build Docker Image
|
name: Build and deploy Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,13 +6,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: builder
|
||||||
|
env:
|
||||||
|
IMAGE: gitea.dsrptlab.com/optovia/billing/billing
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -20,12 +19,11 @@ jobs:
|
|||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker build -t "$IMAGE:latest" -t "$IMAGE:${{ gitea.sha }}" .
|
||||||
context: .
|
docker push "$IMAGE:latest"
|
||||||
push: true
|
docker push "$IMAGE:${{ gitea.sha }}"
|
||||||
tags: gitea.dsrptlab.com/optovia/billing/billing:latest
|
|
||||||
|
|
||||||
- name: Deploy to Dokploy
|
- name: Deploy to Dokploy
|
||||||
run: curl -k -X POST "https://dokploy.dsrptlab.com/api/deploy/compose/K0dZrcbOfbsmAyD1y8VwE"
|
run: curl -fsS -X POST "https://ind.dsrptlab.com/api/deploy/Q14KToX8PUtric6u9hw6o"
|
||||||
|
|||||||
Reference in New Issue
Block a user