Update web-deploy.yml
This commit is contained in:
parent
66d2403149
commit
65bfb2ccd0
1 changed files with 20 additions and 1 deletions
21
.github/workflows/web-deploy.yml
vendored
21
.github/workflows/web-deploy.yml
vendored
|
|
@ -16,7 +16,26 @@ on:
|
||||||
- web/**
|
- web/**
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
runs-on: ['self-hosted', 'pi']
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
runs-on: ['self-hosted', 'pi']
|
packages: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Login to Docker
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USER }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build Image and Push to Registry
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: user/app:latest
|
||||||
|
- name: Deploy to Coolify
|
||||||
|
run: |
|
||||||
|
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue