Merge pull request #74 from richbowen/patch-1 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Production Build | |
on: | |
push: | |
branches: | |
- main | |
env: | |
GITHUB_REGISTRY: ghcr.io | |
IMAGE_NAME: coollabsio/documentation-coolify | |
jobs: | |
build: | |
runs-on: [self-hosted, arm64] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to ${{ env.GITHUB_REGISTRY }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.GITHUB_REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push Image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: Dockerfile | |
platforms: linux/arm64 | |
push: true | |
tags: | | |
${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
- name: Deploy to Coolify | |
run: | | |
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' |