This website works better with JavaScript.
Home
Explore
Help
Sign In
myitinos
/
HackTheGame-v002
forked from
myitinos/HackTheGame-v001
Watch
1
Star
0
Fork
1
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Labels
Milestones
New Pull Request
#1
add some files for automated build with drone CI
Merged
myitinos
merged 2 commits from
soekarmana/HackTheGame-v002:master
into
master
5 years ago
Conversation
0
Commits
2
Files Changed
2
2 changed files
with
24 additions
and
0 deletions
Whitespace
Show all changes
Ignore whitespace when comparing lines
Ignore changes in amount of whitespace
Ignore changes in whitespace at EOL
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
.drone.yml
+14
-0
build-image.sh
+ 10
- 0
.drone.yml
View File
@ -0,0 +1,10 @@
pipeline:
build-docker:
image
:
docker:18.06.1-ce
volumes:
-
/var/run/docker.sock:/var/run/docker.sock
commands:
-
chmod +x ./build-image.sh
-
./build-image.sh
when:
event
:
[
push]
+ 14
- 0
build-image.sh
View File
@ -0,0 +1,14 @@
#!/bin/sh
set
-e
set
-o xtrace
IMAGE_NAME
=
HackTheGame-v002
# clean old images
OLD_IMAGES
=
$(
docker images
$IMAGE_NAME
-q --no-trunc
)
if
[
-n
"
${
OLD_IMAGES
}
"
]
;
then
docker rmi -f
${
OLD_IMAGES
}
;
fi
#Build Images
docker build . -t
$IMAGE_NAME
Write
Preview
Loading…
Cancel
Save