Skip to content

Commit

Permalink
add new releases/v1 branch to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianpopp committed Nov 16, 2019
1 parent 73cab2a commit 60e94de
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM alpine:3.10

LABEL version="1.0.0"
LABEL repository="https://github.com/sebastianpopp/ftp-action"
LABEL homepage="https://github.com/sebastianpopp/ftp-action"
LABEL maintainer="Sebastian Popp <ftp-action@sebastianpopp.com>"
COPY LICENSE README.md /

RUN apk --no-cache add lftp

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# ftp-action

Automate copying your files via FTP using this GitHub action.
Automate copying your files via ftp using this GitHub action.

## Example usage

```
name: Upload via FTP
name: Deploy via ftp
on: push
jobs:
FTP-Action:
name: FTP-Action
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Deploy FTP
uses: sebastianpopp/ftp-action@master
- name: Upload ftp
uses: sebastianpopp/ftp-action@releases/v1
with:
host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }}
Expand Down
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'FTP Action'
description: 'Mirrors a directory with a FTP server.'
name: 'ftp-action'
author: 'Sebastian Popp <ftp-action@sebastianpopp.com>'
description: 'Automate copying your files via FTP using this GitHub action.'
inputs:
host:
description: 'FTP host'
Expand All @@ -19,9 +19,9 @@ inputs:
description: 'Remote directory'
required: false
default: '.'
branding:
color: 'blue'
icon: 'upload'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
color: 'blue'
icon: 'upload-cloud'
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh

set -e
#!/bin/sh -l

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"

0 comments on commit 60e94de

Please sign in to comment.