Commit Graph

507 Commits

Author SHA1 Message Date
6543
25ad50a579 Add support for multible registrys (#23)
if normal settings `registry`, `username`... is set

that's used as default, else first logins entry is used.

```yml
settings:
  logins:
    - registry: https://codeberg.org
      username: "6543"
      password: geheim
    - registry: https://index.docker.io/v1/
      username: a6543
      password: anders_geheim
```

close #18

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/23
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
2022-10-08 16:02:02 +02:00
6543
a7117600aa CI: add test (#26)
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/26
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2022-10-08 15:32:14 +02:00
6543
b85ee124e2 Ensure that the plugin binary does not conflict with the utility being used (#24)
use methode described in https://docs.docker.com/build/buildx/install/ to install buildx into image.
- `/usr/lib/docker/cli-plugins/docker-buildx` -> `/usr/libexec/docker/cli-plugins/docker-buildx`
- fix linux/amd64 build on linux/arm64

rename plugin binary
- `docker-buildx` -> `plugin-docker-buildx`

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/24
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
2022-10-08 00:58:57 +02:00
6543
10426e6a19 Allow multible Repos (#22)
close partialy #18

we still need to handle multible registry login

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/22
2022-09-28 15:17:39 +02:00
6543
06d32b13a5
ingore empty string tags 2022-09-28 03:25:04 +02:00
6543
9a1c38c979
use auto_tag 2022-09-28 03:17:55 +02:00
6543
4add961b4c Publish arm image too (#21)
base image (https://hub.docker.com/_/docker/tags?page=1&name=20.10-dind) do support amd64 and arm64

so we can do too

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/21
2022-09-28 03:12:21 +02:00
6543
ddf80c66d6 clean & refactor (#20)
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/20
2022-09-28 02:22:04 +02:00
Lauris BH
be7d7c0244 Implement option to add image labels and generate automatic labels (#19)
Fixes #16

Results into labels:
![attels](/attachments/3aa6641e-fe50-4e28-be97-64c0afe2c35a)

Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/19
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-committed-by: Lauris BH <lafriks@noreply.codeberg.org>
2022-09-28 02:16:57 +02:00
Lauris BH
8a0424c7a5 Automatically generate buildkit config with registry CA file (#17)
Fixes #14

Buildkit config is actually TOML file not JSON - https://docs.docker.com/engine/reference/commandline/buildx_create/#config

Tested using `lafriks/plugin-docker-buildx:latest` image built with these changes

Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/17
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-committed-by: Lauris BH <lafriks@noreply.codeberg.org>
2022-09-27 22:33:05 +02:00
qwerty287
64aed54d14 Update docs (#15)
According to https://github.com/woodpecker-ci/woodpecker/pull/1200/files#diff-9d12f007f8f4426a84a8561106d0818c431f8b0aee40c80c59413dbb9b9d1afa

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/15
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2022-09-25 19:25:16 +02:00
Lauris BH
df1da38f5d Update docker buildx version to v0.9.1 (#12)
Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/12
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-committed-by: Lauris BH <lafriks@noreply.codeberg.org>
2022-09-20 18:47:22 +02:00
Lauris BH
b88f39c31f Add build output option (#11)
Fixes #6

Also updates dependencies

Co-authored-by: Lauris BH <lauris@nix.lv>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/11
Reviewed-by: anbraten <anbraten@noreply.codeberg.org>
Co-authored-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-committed-by: Lauris BH <lafriks@noreply.codeberg.org>
2022-09-20 18:02:35 +02:00
6543
1d08a8f99a add docs for plugin (#10)
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/10
2022-08-30 22:29:48 +02:00
6543
31e9b9fe2b bump golang to v1.18 (#8)
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/8
2022-08-30 20:57:03 +02:00
6543
10fba7cbfe Add "get-it-on-codeberg" badge and update docu link (#9)
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/9
2022-08-29 23:29:27 +02:00
6543
c4ee5f03e7 no comment 2022-08-29 23:10:24 +02:00
6543
7ecd19d350 enable cron for publish (#7)
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/7
2022-08-29 23:03:56 +02:00
6543
cd378c34b8 Add dryrun (#3)
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/3
2022-02-26 00:03:49 +01:00
techknowlogick
edad444a83 Mention correct license in README (#2)
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/2
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: techknowlogick <techknowlogick@noreply.codeberg.org>
Co-committed-by: techknowlogick <techknowlogick@noreply.codeberg.org>
2021-12-25 23:11:25 +01:00
6543
86879545ce Use secrets in settings 2021-12-18 20:49:55 +01:00
anbraten
72872e456e Update '.woodpecker/main.yml' 2021-12-18 12:33:30 +01:00
techknowlogick
bb74b65e01 Merge pull request 'Build the plugin' (#1) from jasonlearst/plugin-docker-buildx:main into main
Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/1
2021-12-18 04:12:54 +01:00
Jason Learst
88b9cd019d Fix go build in Dockerfile
Switch to woodpeckerci repo
2021-12-17 21:54:16 -05:00
techknowlogick
81145bc0a3 Update '.woodpecker/main.yml' 2021-10-15 16:01:21 +02:00
techknowlogick
b19dcd7c56 Update '.woodpecker/main.yml' 2021-10-15 16:01:03 +02:00
techknowlogick
f162260003 Update '.woodpecker/main.yml' 2021-10-15 16:00:21 +02:00
techknowlogick
3316862f35 Update '.woodpecker/main.yml' 2021-10-15 15:55:58 +02:00
techknowlogick
be3a128558 swap to use plugins/kaniko 2021-10-15 15:54:26 +02:00
techknowlogick
1cd9c96cc2 Update '.woodpecker/main.yml' 2021-10-14 14:42:59 +02:00
Matti R
746e878ffc
build go binary in docker 2021-10-13 01:14:04 -04:00
Matti R
3c6cdbcec5
prelim to switch to woodpecker plugin 2021-10-12 23:44:14 -04:00
Matti R
08ccc7e86c
prelim to switch to woodpecker plugin 2021-10-12 23:40:58 -04:00
Renovate Bot
094150fddc chore(docker): update docker:20.10-dind docker digest to d20f086 2021-10-05 20:37:34 +00:00
Renovate Bot
db51c23ee4 chore(docker): update docker digests 2021-10-05 09:01:48 +00:00
renovate[bot]
6ff2225863
fix(deps): update module github.com/joho/godotenv to v1.4.0 (#55) 2021-09-25 12:07:54 +02:00
Robert Kaussow
41627dfb62
improve changelog template 2021-09-22 11:48:47 +02:00
Robert Kaussow
0f8af695e7
improve drone-matrix template 2021-09-22 09:57:42 +02:00
Robert Kaussow
515f68778e
fix drone yaml format and switch to drone-matrix plugin (#54) 2021-09-19 20:41:41 +02:00
Robert Kaussow
8ea08c698a
docs: add missing plugin description 2021-09-11 21:30:14 +02:00
Robert Kaussow
2404bc12a1
docs: add parameter documentation (#53) 2021-09-11 21:15:02 +02:00
Robert Kaussow
276f215b24
fix: remove unimplemented squash option (#52) 2021-09-07 21:34:47 +02:00
Renovate Bot
708587693c chore(docker): update docker digests 2021-09-01 14:56:23 +00:00
Renovate Bot
f568309a37 chore(docker): update docker:20.10-dind docker digest to 05464e7 2021-09-01 02:31:10 +00:00
renovate[bot]
b6b0f413a0
chore(deps): update dependency docker/buildx to v0.6.3 (#48)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 10:53:00 +02:00
Renovate Bot
d389d16a7d chore(docker): update docker:20.10-dind docker digest to c0aac52 2021-08-24 14:33:13 +00:00
Renovate Bot
3e9f3fef08 chore(docker): update docker digests 2021-08-24 12:48:16 +00:00
renovate[bot]
069e83d6b9
fix(deps): update module honnef.co/go/tools to v0.2.1 (#43)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 20:59:18 +02:00
renovate[bot]
6a6997f990
chore(deps): update dependency docker/buildx to v0.6.2 (#44)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 20:59:07 +02:00
renovate[bot]
52b4cc2805
chore(deps): update dependency docker/buildx to v0.6.1 (#38)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-31 23:58:50 +02:00