-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3cf62f
commit 1cc06c9
Showing
1 changed file
with
32 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# For more details, read this: https://coolify.io/docs/github-actions | ||
# name: Build Static Image | ||
# on: | ||
# push: | ||
# branches: ["main"] | ||
# env: | ||
# REGISTRY: ghcr.io | ||
# IMAGE_NAME: "tgrziminiar/worker" | ||
name: Build Static Image | ||
on: | ||
push: | ||
branches: ["main"] | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: "tgrziminiar/worker" | ||
|
||
# jobs: | ||
# aarch64: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# packages: write | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Login to ghcr.io | ||
# uses: docker/login-action@v2 | ||
# with: | ||
# registry: ${{ env.REGISTRY }} | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.TOKEN }} | ||
# - name: Build image and push to registry | ||
# uses: docker/build-push-action@v4 | ||
# with: | ||
# context: . | ||
# file: Dockerfile | ||
# platforms: linux/amd64 | ||
# push: true | ||
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | ||
# - name: Deploy to Coolify | ||
# run: | | ||
# curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' | ||
jobs: | ||
aarch64: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Login to ghcr.io | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.TOKEN }} | ||
- name: Build image and push to registry | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: Dockerfile | ||
platforms: linux/aarch64 | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | ||
- name: Deploy to Coolify | ||
run: | | ||
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' |