Coder Social home page Coder Social logo

sebastianpopp / git-ftp-action Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 14.0 14 KB

Uses git-ftp and GitHub actions to deploy a GitHub repository to a FTP server.

Home Page: https://github.com/marketplace/actions/git-ftp-action

License: MIT License

Dockerfile 64.71% Shell 35.29%
deploy ftp git git-ftp github-actions

git-ftp-action's Introduction

Hi,

my name is Sebastian Popp. I’m a freelance full-stack web developer from Hamburg, Germany with over ten years of experience.

I develop highly customized web applications, mostly based on WordPress or Laravel, and interactive frontends, usually with Vue.js or Svelte.

Get in touch:

Website LinkedIn XING Email

git-ftp-action's People

Contributors

jaroslawksiezuk avatar sebastianpopp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

git-ftp-action's Issues

@ sign in username

I can't be sure, but I'm struggling to get this work. And wondered if it's because I have an @ sign in my username. I'm using CPanel and it adds in @ signs for annoying reasons.

When it errors out, the @ sign seems to have been escaped as below?

image

fatal: Not a Git project? Exiting...

Following is my code block
`name: Encycode

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: git-ftp push
uses: sebastianpopp/[email protected]
with:
# URL
url: sftp://p46-preview.awardspace.net:221/
# FTP login name
user: {{ ftp_user }}
# FTP password
password: {{ ftp_password }}
# Specifies a local directory to sync from as if it were the git project root path.
syncroot: .
# Additional options
options: "--auto-init --insecure"
# optional, default is --auto-init`

exclude a file?

Very cool workflow

How can i exclude the github file from being deployed?

alpine image instead of debian buster image

Debian buster docker image size is 114MB but alpine image size is less than 6MB.

$ docker images -a

debian buster 971452c94376 13 days ago 114MB
alpine 3.11 e7d92cdc71fe 7 weeks ago 5.59MB

I believe it is a good place to improve your solution.

Dockerfile

FROM alpine:3.11

COPY LICENSE README.md /

RUN apk add --no-cache bash curl git openssh

RUN curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > /bin/git-ftp

RUN chmod 755 /bin/git-ftp

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

#!/bin/sh -l

git-ftp push --auto-init --user $INPUT_USER --passwd $INPUT_PASSWORD $INPUT_URL

Unknown SHA1 object

Trying to implement this into our workflow but receiving the Unknown SHA1 object error when running checks. Everything is in sync between the local / remote repos (git-ftp.log hash on remote matches latest commit hash).

Any thoughts?

Git FTP fails to verify server fingerprint

I'm trying to use SFTP and it's failing due to not being able to verify the server fingerprint. I've verified this by manually running git ftp push with the --insecure flag and it works as intended.

Is there anyway that the --ignore flag could be implemented? Or better yet, a way to verify the server fingerprint?

Why only compatible with v1 of actions/checkout?

This project’s README contains a warning that this project is only compatible with v1 of actions/checkout. Could you please clarify: why is this the case, and what would need to be changed to make this action compatible with v2?

Add options for initialising a project

The action only works for deploying once git-ftp is deployed.
If the project hasn't been initialised with git ftp init or git ftp catchup
Would be good to allow these options through this action so the repos don't need to be manually initialised

FTP files changed or all files option

git diff --name-only HEAD~ gives you the list of files changed in the last commit, can you add the option of either files changed or all files (default)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.