Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
zap

GitHub Action

docker-swarm-deploy-github-action

v1

docker-swarm-deploy-github-action

zap

docker-swarm-deploy-github-action

Deploy your Docker Swarm apps in seconds. ๐Ÿš€

Installation

Copy and paste the following snippet into your .yml file.

              

- name: docker-swarm-deploy-github-action

uses: serversideup/github-action-docker-swarm-deploy@v1

Learn more about this action in serversideup/github-action-docker-swarm-deploy

Choose a version

Header Image

License Support us
Discourse users Discord

Docker Swarm Deploy with GitHub Actions

Hi! We're Dan and Jay. We're a two person team with a passion for open source products. We created Server Side Up to help share what we learn.

Find us at:

  • ๐Ÿ“– Blog - get the latest guides and free courses on all things web/mobile development.
  • ๐Ÿ™‹ Community - get friendly help from our community members.
  • ๐Ÿคตโ€โ™‚๏ธ Get Professional Help - get guaranteed responses within next business day.
  • ๐Ÿ’ป GitHub - check out our other open source projects
  • ๐Ÿ“ซ Newsletter - skip the algorithms and get quality content right to your inbox
  • ๐Ÿฅ Twitter - you can also follow Dan and Jay
  • โค๏ธ Sponsor Us - please consider sponsoring us so we can create more helpful resources

Our Sponsors

All of our software is free an open to the world. None of this can be brought to you without the financial backing of our sponsors.

Individual Supporters

deligoezย ย alexjustesenย ย jeremykenedyย ย 

About this project

This is a GitHub Action intended to simplify the development experience while deploying with Docker Swarm.

Features:

  • ๐Ÿ˜ƒ Simple to use
  • ๐Ÿ—๏ธ Bring your own container + configuration
  • ๐Ÿ’ฏ Replicate 100% of production from Development to CI to Deployment

Usage

Here is an example workflow:

# TBD

Configuration options

Parameter Description Default Required
docker_compose_file_path Set your docker compose file path with the CLI options. -c docker-compose.yml -c docker-compose.prod.yml false
stack_name The name of your docker stack. true
deployment_ssh_private_key The private key you have authenticated to connect to your server via SSH. โš ๏ธ true
remote_ssh_known_hosts The public key of your SSH server to validate we are connecting to the right server. โš ๏ธ true
remote_ssh_deployment_user The user that you would like to connect as on the remote server via SSH. deploy โš ๏ธ true
remote_ssh_server_hostname The hostname or IP address of the server you want to connect to. โš ๏ธ true
remote_ssh_port The SSH port of the remote server you would like to connect to. 22 false
registry Comma-separated list of container registries to authenticate with (e.g., "docker.io,ghcr.io"). docker.io (Default to Docker Hub if not specified) false
registry-username The username to use to authenticate with the container registry. true
registry-token The token or password to use to authenticate with the container registry. true

Security Disclosures

If you find a security vulnerability, please let us know as soon as possible.

View Our Responsible Disclosure Policy โ†’