Skip to content

fix(rclone): use copy instead of move to transfer single file #9

fix(rclone): use copy instead of move to transfer single file

fix(rclone): use copy instead of move to transfer single file #9

Workflow file for this run

name: deploy
on:
push:
tags:
- '*'
jobs:
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
outputs:
meta: ${{ steps.meta.outputs.json }}
steps:
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository_owner }}/putcallback
flavor: |
latest=auto
prefix=
suffix=
tags: |
type=semver,pattern={{raw}},priority=1100
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
dokku:
name: Deploy to dokku host
needs: docker
runs-on: ubuntu-latest
steps:
-
name: Build app
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: dokku
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
git:from-image ${{ secrets.DOKKU_APP }} ${{ fromJson(needs.docker.outputs.meta).tags[0] }}