Build image directly on Coolify
This commit is contained in:
@@ -74,39 +74,13 @@ jobs:
|
|||||||
CLOAK_ENCRYPTION_KEY: f5ol1dJROsm9yi/tvtHiblN8aLH1FUN/obEvUcASx3U=
|
CLOAK_ENCRYPTION_KEY: f5ol1dJROsm9yi/tvtHiblN8aLH1FUN/obEvUcASx3U=
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
name: Deploy
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
concurrency: deploy-group
|
concurrency: deploy-group
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Notify Coolify
|
||||||
name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64
|
|
||||||
tags: |
|
|
||||||
fullyforged/music_library:latest
|
|
||||||
fullyforged/music_library:${{ github.sha }}
|
|
||||||
push: true
|
|
||||||
cache-from: type=registry,ref=fullyforged/music_library:latest
|
|
||||||
cache-to: type=inline
|
|
||||||
secrets: |
|
|
||||||
"FLUXON_LICENSE_KEY=${{ secrets.FLUXON_LICENSE_KEY }}"
|
|
||||||
"FLUXON_KEY_FINGERPRINT=${{ secrets.FLUXON_KEY_FINGERPRINT }}"
|
|
||||||
|
|
||||||
- name: Deploy to Coolify
|
|
||||||
run: |
|
run: |
|
||||||
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
|
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user