Skip to content

Commit

Permalink
Fix master -> main in CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Sep 20, 2022
1 parent 49d571e commit fc6fa05
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,17 @@ jobs:
- run:
name: Build Docker artifact
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_SHA1}" .
- run:
name: Push application Docker image to docker hub
command: |
if [ "${CIRCLE_BRANCH}" = "master" ]; then
docker tag "cosmwasm/wasmd:${CIRCLE_SHA1}" cosmwasm/wasmd:latest
docker login --password-stdin -u "$DOCKER_USER" \<<<"$DOCKER_PASS"
docker push cosmwasm/wasmd:latest
docker logout
fi
- when:
condition:
equal: [ main, << pipeline.git.branch >> ]
steps:
- run:
name: Push application Docker image to docker hub
command: |
docker tag "cosmwasm/wasmd:${CIRCLE_SHA1}" cosmwasm/wasmd:latest
docker login --password-stdin -u "$DOCKER_USER" \<<<"$DOCKER_PASS"
docker push cosmwasm/wasmd:latest
docker logout
docker-tagged:
executor: golang
Expand All @@ -194,14 +196,14 @@ workflows:
version: 2
test-suite:
jobs:
# this is now a slow process... let's only run on master
# this is now a slow process... let's only run on main and PR branches we care about
- docker-image:
requires:
- setup-dependencies
filters:
branches:
only:
- master
- main
- docker-tagged:
filters:
tags:
Expand Down

0 comments on commit fc6fa05

Please sign in to comment.