Skip to content

chore: update dependencies #2

chore: update dependencies

chore: update dependencies #2

Workflow file for this run

name: Docker Push
on:
push:
tags:
- "v*"
jobs:
build_and_push:
name: Build and Push to Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/solufyapp/website:${{ github.ref_name }}
ghcr.io/solufyapp/website:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Deploy application
run: |
curl -X "POST" \
"${{ vars.DOKPLOY_WEBHOOK_URL }}" \
-H "Content-Type: application/json" \
-H "x-github-event: tag" \
-d '{"head_commit": {"id": "${{ github.sha }}", "message": "${{ github.ref_name }}"}}'