This website works better with JavaScript.
首頁
探索
說明
登入
myitinos
/
HackTheGame-v002
複製自
myitinos/HackTheGame-v001
關註
1
收藏
0
複製
1
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
標籤
里程碑
建立合併請求
#1
add some files for automated build with drone CI
已合併
myitinos
於
5 年之前
將 2 次代碼提交從
soekarmana/HackTheGame-v002:master
合併至
master
對話內容
0
程式碼提交
2
Files Changed
2
共有
2 個文件被更改
,包括
24 次插入
和
0 次删除
Whitespace
Show all changes
Ignore whitespace when comparing lines
Ignore changes in amount of whitespace
Ignore changes in whitespace at EOL
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
.drone.yml
+14
-0
build-image.sh
+ 10
- 0
.drone.yml
查看文件
@ -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
查看文件
@ -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…
取消
儲存