Continuous Delivery and Continuous Deployment Server Convention
ActionsTags
(1)Trip Teknologi's Continuous Delivery and Continuous Deployment Server Convention.
How to use :
-
Optionally in your own running :
ssh-keygen -t rsa -b 4096 -a 100 -o -f ~/.ssh/id_rsa
. -
Optionally in your own running :
ssh-keyscan -t rsa -p <port> -H <host> >> ~/.ssh/known_hosts
. -
You need to publish your publickey to server's
~/.ssh/authorized_keys
with running :ssh-copy-id -i ~/.ssh/id_rsa.pub -p <port> <user>@<host>
. -
You need to create a workflow in
.github/workflows/
.Sample file :
name: Continuous Delivery and Continuous Deployment Server on: push jobs: cd: runs-on: ubuntu-latest steps: - uses: tripteki/cd-server@1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} artifact: <artifact>.<extension> type: ssh host: ${{ secrets.SERVER_HOST }} port: ${{ secrets.SERVER_PORT }} user: ${{ secrets.SERVER_USER }} privatekey: ${{ secrets.SERVER_PRIVATE_KEY }} privatekey_passphrase: ${{ secrets.SERVER_PRIVATE_KEY_PASSPHRASE }} path: "/var/www/codebase/" - uses: tripteki/cd-server@1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} artifact: <artifact>.<extension> type: command host: ${{ secrets.SERVER_HOST }} port: ${{ secrets.SERVER_PORT }} user: ${{ secrets.SERVER_USER }} privatekey: ${{ secrets.SERVER_PRIVATE_KEY }} privatekey_passphrase: ${{ secrets.SERVER_PRIVATE_KEY_PASSPHRASE }} script: | APP_ENV=production ./bin/project -b -l -t -e -c
-
artifact
section value possibilities :composer.json
,package.json
,pyproject.toml
, etc. -
type
section value possibilities :ssh
,command
.
- Trip Teknologi (@tripteki)
- Hasby Maulana (@hsbmaulana)
Continuous Delivery and Continuous Deployment Server Convention is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.