Skip to content

Commit 26c7637

Browse files
committed
Build docker image
1 parent 28b2361 commit 26c7637

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.circleci/config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,30 @@ jobs:
6767
go get github.com/tcnksm/ghr
6868
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./release/
6969
70+
docker-build:
71+
docker:
72+
- image: cimg/base:2022.04
73+
steps:
74+
- checkout
75+
- setup_remote_docker:
76+
version: 20.10.11
77+
- run: |
78+
docker build .
79+
80+
docker-build-and-push:
81+
docker:
82+
- image: cimg/base:2022.04
83+
steps:
84+
- checkout
85+
- setup_remote_docker:
86+
version: 20.10.11
87+
- run: |
88+
TAG=${CIRCLE_TAG:1}
89+
TAG=${TAG:-latest}
90+
docker build -t robocupssl/ssl-remote-control:$TAG .
91+
docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
92+
docker push robocupssl/ssl-remote-control:$TAG
93+
7094
workflows:
7195
version: 2
7296
main:
@@ -89,3 +113,15 @@ workflows:
89113
ignore: /.*/
90114
tags:
91115
only: /^v.*/
116+
- docker-build:
117+
context: docker hub
118+
filters:
119+
branches:
120+
ignore: master
121+
- docker-build-and-push:
122+
context: docker hub
123+
filters:
124+
branches:
125+
only: master
126+
tags:
127+
only: /^v.*/

0 commit comments

Comments
 (0)