1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
diff --git a/.build.yml b/.build.yml
index 1e2e2c79e6e05e8d3869f49df2f8a90ee1864158..ca500594a9134b1a16f96b10e6a89375f115488c 100644
--- a/.build.yml
+++ b/.build.yml
@@ -2,6 +2,7 @@ image: archlinux
packages:
- base-devel
- docker
+ - docker-buildx
- git
- go
sources:
@@ -24,14 +25,17 @@ - stop-unless-push: |
if [ "$BUILD_SUBMITTER" != "git.sr.ht" ]; then complete-build; fi
- mirror-to-github: |
git clone --mirror https://git.sr.ht/~mpldr/gogit
- cd gomod-recter.git
+ cd gogit.git
git push --mirror git@github.com:mpldr/gogit.git
- update-container: |
cd ~/gogit
if git describe --exact-match HEAD; then
docker build -t "c8n.io/mpldr/gogit:$(git describe --exact-match HEAD)" -t "c8n.io/mpldr/gogit:latest" -t "c8n.io/mpldr/gogit:devel" .
- docker push "c8n.io/mpldr/gogit:$(git describe --exact-match HEAD)" "c8n.io/mpldr/gogit:latest" "c8n.io/mpldr/gogit:devel"
+ docker push "c8n.io/mpldr/gogit:$(git describe --exact-match HEAD)"
+ docker push "c8n.io/mpldr/gogit:latest"
+ docker push "c8n.io/mpldr/gogit:devel"
else
- docker build -t "c8n.io/mpldr/gogit:$(git describe HEAD)" -t "c8n.io/mpldr/gogit:devel" .
- docker push "c8n.io/mpldr/gogit:$(git describe --always HEAD)" "c8n.io/mpldr/gogit:devel"
+ docker build -t "c8n.io/mpldr/gogit:$(git describe --always HEAD)" -t "c8n.io/mpldr/gogit:devel" .
+ docker push "c8n.io/mpldr/gogit:$(git describe --always HEAD)"
+ docker push "c8n.io/mpldr/gogit:devel"
fi
|