mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
Fix image tags (#781)
This commit is contained in:
2
.github/workflows/dockerhub-backend.yml
vendored
2
.github/workflows/dockerhub-backend.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=sha,prefix={{branch}}-
|
type=ref,event=tag
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|||||||
14
.github/workflows/dockerhub-frontend.yml
vendored
14
.github/workflows/dockerhub-frontend.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=sha,prefix={{branch}}-
|
type=ref,event=tag
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@@ -61,10 +61,18 @@ jobs:
|
|||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build-and-push
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: success()
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
environment: [reflector-monadical, reflector-media]
|
||||||
|
environment: ${{ matrix.environment }}
|
||||||
|
steps:
|
||||||
- name: Trigger Coolify deployment
|
- name: Trigger Coolify deployment
|
||||||
if: success()
|
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "${{ secrets.COOLIFY_WEBHOOK_URL }}" \
|
curl -X POST "${{ secrets.COOLIFY_WEBHOOK_URL }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer ${{ secrets.COOLIFY_WEBHOOK_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.COOLIFY_WEBHOOK_TOKEN }}" \
|
||||||
-f || (echo "Failed to trigger Coolify deployment" && exit 1)
|
-f || (echo "Failed to trigger Coolify deployment for ${{ matrix.environment }}" && exit 1)
|
||||||
|
|||||||
@@ -15,8 +15,10 @@ GITHUB_TOKEN=your-github-token-or-use-default-GITHUB_TOKEN
|
|||||||
|
|
||||||
# Coolify Deployment Webhook (required for frontend deployment)
|
# Coolify Deployment Webhook (required for frontend deployment)
|
||||||
# Used to trigger automatic deployment after image push
|
# Used to trigger automatic deployment after image push
|
||||||
COOLIFY_WEBHOOK_URL=https://app.monadical.io/api/v1/deploy?uuid=your-uuid&force=false
|
# Configure these secrets in GitHub Environments:
|
||||||
COOLIFY_WEBHOOK_TOKEN=your-coolify-webhook-token
|
# Each environment should have:
|
||||||
|
# - COOLIFY_WEBHOOK_URL: The webhook URL for that specific deployment
|
||||||
|
# - COOLIFY_WEBHOOK_TOKEN: The webhook token (can be the same for both if using same token)
|
||||||
|
|
||||||
# Optional: GitHub Actions Cache Token (for local testing with act)
|
# Optional: GitHub Actions Cache Token (for local testing with act)
|
||||||
GHA_CACHE_TOKEN=your-github-token-or-empty
|
GHA_CACHE_TOKEN=your-github-token-or-empty
|
||||||
|
|||||||
Reference in New Issue
Block a user