From 4d23fd21385a80887b43d2fb990b1b8ca2fea9fb Mon Sep 17 00:00:00 2001 From: adamghill Date: Thu, 28 Nov 2024 22:18:13 -0500 Subject: [PATCH] Use repo as the image name. --- .github/workflows/coolify.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coolify.yml b/.github/workflows/coolify.yml index f24f074..41a4fb4 100644 --- a/.github/workflows/coolify.yml +++ b/.github/workflows/coolify.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: env: REGISTRY: ghcr.io - IMAGE_NAME: "andrasbacsai/github-actions-with-coolify" + IMAGE_NAME: ${{ github.repository }} jobs: amd64: @@ -19,7 +19,7 @@ jobs: - name: Login to ghcr.io uses: docker/login-action@v3.3.0 with: - registry: ghcr.io + registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build image and push to registry @@ -29,7 +29,7 @@ jobs: file: Dockerfile platforms: linux/amd64 push: true - tags: ghcr.io/${{ env.IMAGE_NAME }}:latest + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - name: Deploy to Coolify run: | curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'