This action deploys a Docker image to Aptible Deploy. To use this image, you should use another workflow step to publish your image to a Docker image registry.
If you are using a private registry, you can setup Private Registry Authentication once ahead of time using the Aptible CLI.
aptible config:set \
--app "$APP_HANDLE" \
"APTIBLE_PRIVATE_REGISTRY_USERNAME=$USERNAME"
"APTIBLE_PRIVATE_REGISTRY_PASSWORD=$PASSWORD"
The converstion from var
to INPUT_VAR
is how GitHub Actions handle Inputs.
username
- passed toaptible
CLIpassword
- passed toaptible
CLIenvironment
- specifies App to be deployedapp
- specifies App to be deployeddocker_img
- the name of the image you’d like to deploy, including its repository and tagprivate_registry_username
- the username for the private registry to pull a docker image fromprivate_registry_password
- the password for the private registry to pull a docker image from
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Aptible
uses: aptible/aptible-deploy-action@master
with:
username: <aptible username>
password: <aptible password>
environment: <environment name>
app: <app name>
docker_img: <docker image name>
private_registry_username: <username>
private_registry_password: <password>