Skip to content

Commit

Permalink
Use repo as the image name.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Nov 29, 2024
1 parent 83f679d commit 4d23fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coolify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: "andrasbacsai/github-actions-with-coolify"
IMAGE_NAME: ${{ github.repository }}

jobs:
amd64:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Login to ghcr.io
uses: docker/[email protected]
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to registry
Expand All @@ -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 }}'

0 comments on commit 4d23fd2

Please sign in to comment.