add new releases/v1 branch to readme

This commit is contained in:
Sebastian Popp 2019-11-16 18:45:24 +01:00
parent 73cab2a2cd
commit 60e94deadd
4 changed files with 14 additions and 18 deletions

View file

@ -1,11 +1,9 @@
FROM alpine:3.10 FROM alpine:3.10
LABEL version="1.0.0" COPY LICENSE README.md /
LABEL repository="https://github.com/sebastianpopp/ftp-action"
LABEL homepage="https://github.com/sebastianpopp/ftp-action"
LABEL maintainer="Sebastian Popp <ftp-action@sebastianpopp.com>"
RUN apk --no-cache add lftp RUN apk --no-cache add lftp
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View file

@ -1,20 +1,20 @@
# ftp-action # ftp-action
Automate copying your files via FTP using this GitHub action. Automate copying your files via ftp using this GitHub action.
## Example usage ## Example usage
``` ```
name: Upload via FTP name: Deploy via ftp
on: push on: push
jobs: jobs:
FTP-Action: deploy:
name: FTP-Action name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Deploy FTP - name: Upload ftp
uses: sebastianpopp/ftp-action@master uses: sebastianpopp/ftp-action@releases/v1
with: with:
host: ${{ secrets.FTP_SERVER }} host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }} user: ${{ secrets.FTP_USERNAME }}

View file

@ -1,6 +1,6 @@
name: 'FTP Action' name: 'ftp-action'
description: 'Mirrors a directory with a FTP server.'
author: 'Sebastian Popp <ftp-action@sebastianpopp.com>' author: 'Sebastian Popp <ftp-action@sebastianpopp.com>'
description: 'Automate copying your files via FTP using this GitHub action.'
inputs: inputs:
host: host:
description: 'FTP host' description: 'FTP host'
@ -19,9 +19,9 @@ inputs:
description: 'Remote directory' description: 'Remote directory'
required: false required: false
default: '.' default: '.'
branding:
color: 'blue'
icon: 'upload'
runs: runs:
using: 'docker' using: 'docker'
image: 'Dockerfile' image: 'Dockerfile'
branding:
color: 'blue'
icon: 'upload-cloud'

View file

@ -1,5 +1,3 @@
#!/bin/sh #!/bin/sh -l
set -e
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit" lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"