Skip to content

Commit 007321b

Browse files
authored
Merge pull request #5 from drone-plugins/os-tags
Add the os to docker tags
2 parents 1bbdfad + 59fc0dd commit 007321b

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

.appveyor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ build_script:
2626
}
2727
2828
docker pull microsoft/nanoserver:10.0.14393.1593
29-
docker build -f Dockerfile.windows -t plugins/matrix:windows .
29+
docker build -f Dockerfile.windows -t plugins/matrix:windows-amd64 .
3030
3131
test_script:
3232
- ps: |
33-
docker run --rm plugins/matrix:windows --version
33+
docker run --rm plugins/matrix:windows-amd64 --version
3434
3535
deploy_script:
3636
- ps: |
@@ -47,16 +47,16 @@ deploy_script:
4747
docker push plugins/matrix:windows
4848
4949
docker tag plugins/matrix:windows plugins/matrix:$major.$minor.$patch-windows
50-
docker push plugins/matrix:$major.$minor.$patch-windows
50+
docker push plugins/matrix:$major.$minor.$patch-windows-amd64
5151
5252
docker tag plugins/matrix:windows plugins/matrix:$major.$minor-windows
53-
docker push plugins/matrix:$major.$minor-windows
53+
docker push plugins/matrix:$major.$minor-windows-amd64
5454
5555
docker tag plugins/matrix:windows plugins/matrix:$major-windows
56-
docker push plugins/matrix:$major-windows
56+
docker push plugins/matrix:$major-windows-amd64
5757
} else {
5858
if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) {
59-
docker push plugins/matrix:windows
59+
docker push plugins/matrix:windows-amd64
6060
}
6161
}
6262
}

.drone.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pipeline:
1010
- go vet
1111
- |
1212
for PKG in $(go list ./... | grep -v /vendor/); do
13-
go test -cover -coverprofile $PKG/coverage.out $PKG
13+
go test -cover -coverprofile $GOPATH/src/$PKG/coverage.out $PKG
1414
done
1515
1616
build_linux_amd64:
@@ -85,7 +85,7 @@ pipeline:
8585
group: docker
8686
repo: plugins/matrix
8787
auto_tag: true
88-
auto_tag_suffix: amd64
88+
auto_tag_suffix: linux-amd64
8989
dockerfile: Dockerfile
9090
when:
9191
event: [ push, tag ]
@@ -97,7 +97,7 @@ pipeline:
9797
group: docker
9898
repo: plugins/matrix
9999
auto_tag: true
100-
auto_tag_suffix: i386
100+
auto_tag_suffix: linux-i386
101101
dockerfile: Dockerfile.i386
102102
when:
103103
event: [ push, tag ]
@@ -109,7 +109,7 @@ pipeline:
109109
group: docker
110110
repo: plugins/matrix
111111
auto_tag: true
112-
auto_tag_suffix: arm64
112+
auto_tag_suffix: linux-arm64
113113
dockerfile: Dockerfile.arm64
114114
when:
115115
event: [ push, tag ]
@@ -121,7 +121,7 @@ pipeline:
121121
group: docker
122122
repo: plugins/matrix
123123
auto_tag: true
124-
auto_tag_suffix: arm
124+
auto_tag_suffix: linux-arm
125125
dockerfile: Dockerfile.arm
126126
when:
127127
event: [ push, tag ]

Dockerfile.windows

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ LABEL maintainer="Drone.IO Community <[email protected]>" `
66
org.label-schema.vendor="Drone.IO Community" `
77
org.label-schema.schema-version="1.0"
88

9-
ADD drone-matrix.exe /drone-matrix.exe
10-
ENTRYPOINT [ "\\drone-matrix.exe" ]
9+
ADD drone-matrix.exe c:\drone-matrix.exe
10+
ENTRYPOINT [ "c:\\drone-matrix.exe" ]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ docker run --rm \
3333
-e PLUGIN_ROOMID=0123456789abcdef:matrix.org \
3434
-e PLUGIN_USERNAME=yourbot \
3535
-e PLUGIN_PASSWORD=p455w0rd \
36+
-v $(pwd):$(pwd) \
37+
-w $(pwd) \
3638
plugins/matrix
3739
```

manifest.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ tags:
77
{{/if}}
88
manifests:
99
-
10-
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}amd64
10+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-amd64
1111
platform:
1212
architecture: amd64
1313
os: linux
1414
-
15-
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}i386
15+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-i386
1616
platform:
1717
architecture: 386
1818
os: linux
1919
-
20-
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}arm64
20+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-arm64
2121
platform:
2222
architecture: arm64
2323
os: linux
2424
-
25-
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}arm
25+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}linux-arm
2626
platform:
2727
architecture: arm
2828
os: linux
2929
-
30-
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}windows
30+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}windows-amd64
3131
platform:
3232
architecture: amd64
3333
os: windows

0 commit comments

Comments
 (0)