Skip to content

Commit

Permalink
Build Github package on CI too
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-wasp committed Jun 30, 2020
1 parent ac1cb44 commit 954d742
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ workflows:
branches:
only:
- master
- elastic

jobs:
build:
Expand All @@ -31,10 +30,13 @@ jobs:
name: Build docker image
command: |
docker build -t astroband/${CIRCLE_PROJECT_REPONAME}:latest -t astroband/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_BRANCH}-${CIRCLE_SHA1} .
docker build -t docker.pkg.github.com/astroband/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_REPONAME}:latest -t docker.pkg.github.com/astroband/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_SHA1} .
# deploy the image
- run:
name: Push image to DockerHub
name: Push image to DockerHub and Github packages
command: |
docker push astroband/${CIRCLE_PROJECT_REPONAME}:latest
docker push astroband/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_BRANCH}-${CIRCLE_SHA1}
docker push docker.pkg.github.com/astroband/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_REPONAME}:latest
docker push docker.pkg.github.com/astroband/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_REPONAME}:${CIRCLE_SHA1}

0 comments on commit 954d742

Please sign in to comment.