Skip to content

Commit

Permalink
setup docker release action
Browse files Browse the repository at this point in the history
  • Loading branch information
dabutvin authored Mar 23, 2019
1 parent 64b6a04 commit 8670a78
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
workflow "Release dabutvin/imgbot-compressimages" {
on = "release"
resolves = ["GitHub Action for Docker-1"]
}

action "Docker Registry" {
uses = "actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}

action "GitHub Action for Docker" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
needs = ["Docker Registry"]
args = "build -f Dockerfile.CompressImages . -t imgbot-compressimages"
}

action "Docker Tag" {
uses = "actions/docker/tag@8cdf801b322af5f369e00d85e9cf3a7122f49108"
needs = ["GitHub Action for Docker"]
args = "imgbot-compressimages dabutvin/imgbot-compressimages"
}

action "GitHub Action for Docker-1" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
needs = ["Docker Tag"]
args = "push dabutvin/imgbot-compressimages"
}

0 comments on commit 8670a78

Please sign in to comment.