Skip to content

Commit

Permalink
add docker-mailserver workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Oct 20, 2024
1 parent 380f837 commit 0ddd6c4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/docker-mailserver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy-docker-mailserver

on:
push:
paths:
- '.github/workflows/docker-mailserver.yml'
- 'docker-mailserver/**'
branches: [main]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: Docker-mailserver
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Tailscale
uses: tailscale/github-action@7a0b30ed3517c2244d1330e39467b95f067a33bd
with:
oauth-client-id: ${{ secrets.TAILSCALE_CLIENT_ID }}
oauth-secret: ${{ secrets.TAILSCALE_SECRET }}
tags: tag:deploy-ci
hostname: Github-actions
version: ${{ vars.TAILSCALE_VERSION }}

- name: Start Deployment
uses: FarisZR/docker-compose-gitops-action@v1.0.1
with:
remote_docker_host: ${{ secrets.server_address }}
tailscale_ssh: true # no need for manual private and public keys
compose_file_path: docker-mailserver/docker-compose.yml
args: -p docker-mailserver up -d --remove-orphans
upload_directory: true
docker_compose_directory: docker-mailserver

0 comments on commit 0ddd6c4

Please sign in to comment.