* Update docker-compose.yaml * Update docker-compose.yaml * Update package.json * Update Dockerfile * Update Dockerfile * Integrity 1
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
name: Web Deployment
|
|
on:
|
|
workflow_dispatch: {}
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- web/**
|
|
jobs:
|
|
deploy:
|
|
environment: dev
|
|
runs-on: 'ubuntu-latest'
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Login to Docker
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: docker.io
|
|
username: ${{ secrets.DOCKERHUB_USER }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Docker Build Backend
|
|
run: docker build -f web/Dockerfile -t john4064/shiftsync:latest_web ./web --build-arg TEST=${{ secrets.TEST }}
|
|
- name: Docker Push Backend
|
|
run: docker push john4064/shiftsync:latest_web
|
|
- name: Deploy to Coolify
|
|
run: |
|
|
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
|
|
|