Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (56 sloc) 1.27 KB
workflow "on pull request merge, delete the branch" {
on = "pull_request"
resolves = ["branch cleanup"]
}
action "branch cleanup" {
uses = "jessfraz/branch-cleanup-action@master"
secrets = ["GITHUB_TOKEN"]
}
workflow "run tests" {
on = "push"
resolves = ["sentry release"]
}
action "Build docker image" {
uses = "actions/docker/cli@master"
args = "build -t thraxil/antisocial:$GITHUB_SHA ."
}
action "Deploy branch filter" {
needs = "Build docker image"
uses = "actions/bin/filter@master"
args = "branch master"
}
action "docker login" {
needs = "Deploy branch filter"
uses = "actions/docker/login@master"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "docker push" {
needs = ["docker login"]
uses = "actions/docker/cli@master"
args = ["push", "thraxil/antisocial:$GITHUB_SHA"]
}
action "deploy" {
needs = "docker push"
uses = "thraxil/django-deploy-action@master"
secrets = [
"PRIVATE_KEY",
"KNOWN_HOSTS",
"WEB_HOSTS",
]
env = {
SSH_USER = "anders"
APP = "antisocial"
}
}
action "sentry release" {
needs = ["deploy"]
uses = "juankaram/sentry-release@master"
secrets = [
"SENTRY_AUTH_TOKEN"
]
env = {
SENTRY_ORG = "thraxil"
SENTRY_PROJECT = "antisocial"
ENVIRONMENT = "production"
}
}
You can’t perform that action at this time.