Skip to content

Commit

Permalink
uncomment build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
TGRZiminiar committed Aug 27, 2024
1 parent e3cf62f commit 1cc06c9
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/build.yaml
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 }}'

0 comments on commit 1cc06c9

Please sign in to comment.