kitconcept / docker-stack-deploy Goto Github PK
View Code? Open in Web Editor NEWGitHub Action and Docker image used to deploy a Docker stack on a Docker Swarm
License: MIT License
GitHub Action and Docker image used to deploy a Docker stack on a Docker Swarm
License: MIT License
Actions fails when you don't provide any login details for the container register
This is an easy error to make and hard to catch. Only if you enable debug on the run, you see that the remote_host variable only has a starting ' quote, but not an ending quote like the other variables.
In the github environment UI it is very easy and invisible if the variable has a newline. Can we add somethiing like:
https://stackoverflow.com/questions/19345872/how-to-remove-a-newline-from-a-string-in-bash
when the remote_host variable is used?
Alternatively we could also catch it in the GHA workflow file when the remote_host variable is assigned in the with: arguments, but that's repetitive boiler plate every time you use the action.
https://github.com/kitconcept/docker-stack-deploy/blob/main/scripts/docker-entrypoint.sh#L40
Error /docker-entrypoint.sh: line 40: export: `.env': not a valid identifier
I don't understand why are you using printf, not cat
Hello,
great work on this action ๐
Can you provide some exemple of stack_param and env_file input usage?
Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.