Skip to content

Instantly share code, notes, and snippets.

@IzzleNizzle
Last active May 15, 2023 23:50
Show Gist options
  • Save IzzleNizzle/2bd482f21086c3c4f866daff34b52555 to your computer and use it in GitHub Desktop.
Save IzzleNizzle/2bd482f21086c3c4f866daff34b52555 to your computer and use it in GitHub Desktop.
XC Tasks Syntax Example - XC Tasks Github Repository: https://github.com/joerdav/xc

Tasks

main-build-push-test-env

Builds,tags,pushes to remote Requires: build-test-image, tag-test-image-remote, push-test-image-remote, caprover-deploy-test

build-test-image

Build Docker Image

docker build --pull --rm -t image-name:latest .

tag-test-image-remote

Tags local image with remote name

docker tag image-name:latest $REGISTRY_ADDRESS/image-name:latest

push-test-image-remote

Pushes local image to remote

docker push $REGISTRY_ADDRESS/image-name:latest

caprover-deploy-test

Sends signal to Caprover deployment for this app

caprover deploy --imageName $REGISTRY_ADDRESS/image-name:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment