Update 1337kavin/piped-proxy:latest Docker digest to 0bb7cd3 #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy-piped | |
on: | |
push: | |
paths: | |
- '.github/workflows/piped.yml' | |
- 'piped/**' | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: piped | |
url: https://piped.aosus.link | |
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: Add secrets to config files | |
env: | |
POSTGRES_PASSWORD: ${{ secrets.piped_postgres_password }} | |
run: | | |
sed -i "s|(piped_postgres_password)|$POSTGRES_PASSWORD|g" $GITHUB_WORKSPACE/piped/config.properties | |
sed -i "s|(piped_postgres_password)|$POSTGRES_PASSWORD|g" $GITHUB_WORKSPACE/piped/docker-compose.yml | |
- name: Start Deployment | |
uses: FarisZR/[email protected] | |
with: | |
remote_docker_host: ${{ secrets.server_address }} | |
tailscale_ssh: true # no need for manual private and public keys | |
upload_directory: true # upload docker directory | |
docker_compose_directory: piped # directory to upload | |
compose_file_path: piped/docker-compose.yml | |
args: -p piped up -d --remove-orphans |