Commit graph

624 commits

Author SHA1 Message Date
pat-s
ff0040a323
fix type= 2024-02-02 22:05:34 +01:00
pat-s
10071e07ac
Merge branch 'main' into fix-59 2024-02-02 22:04:58 +01:00
David Kovari
ef56bac838 Improve support for cache_to and cache_from & add cache_images (#129)
### 📖 Summary

Originally, the cache_to and cache_from were being converted into string arrays. Then their contents were looped over to add to the build command. This has the side affect of stopping the user from setting additional options for the cache-to and cache-from args since their command input format uses commas. i.e. `type=registry,ref=imagepath,mode=max` would result in `--cache-to type=registry --cache-to ref=imagepath --cache-to mode=max`. The command was not designed to be used that way.

The one reason I can think of for cache_to and cache_from to be arrays is so you could have multiple cache registries. But I can't confirm that the build command even works like this.

### 📑 Build PR Images?

PR images are not needed

### 💬 Details

_No response_

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/129
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: David Kovari <dakovari@gmail.com>
Co-committed-by: David Kovari <dakovari@gmail.com>
2024-02-02 20:25:30 +00:00
pat-s
0d1723b95c
clean 2024-01-27 15:44:34 +01:00
pat-s
3c29763762
test dry run 2024-01-27 15:41:09 +01:00
pat-s
cb82af8503
test 2024-01-27 15:39:00 +01:00
pat-s
08daa60f0c
. 2024-01-27 15:35:54 +01:00
pat-s
643abccda0
type=image 2024-01-27 15:35:43 +01:00
pat-s
3b6a6e0d55
use type=docker 2024-01-27 15:09:51 +01:00
woodpecker-bot
4d1a4cbe2b fix(deps): update module github.com/aws/aws-sdk-go to v1.50.5 v3.0.1 2024-01-27 00:08:09 +00:00
pat-s
f0594afc4c
defaultBuildArgs 2024-01-26 16:18:50 +01:00
pat-s
49ad1a64a6
normal build arg 2024-01-26 14:33:02 +01:00
pat-s
e3df02f69b
build-arg:SOURCE_DATE_EPOCH 2024-01-26 14:16:57 +01:00
pat-s
760610f78d
move push to build.Output 2024-01-26 14:08:20 +01:00
pat-s
398cd8e7cb
always set build output 2024-01-26 09:45:58 +01:00
pat-s
1790f22a35
. 2024-01-26 09:10:21 +01:00
pat-s
b50652a50c
print 2024-01-26 08:42:46 +01:00
Patrick Schratz
609c627370 Merge branch 'main' into fix-59 2024-01-26 07:34:20 +00:00
pat-s
7499423e30 Don't run dryrun when building pr images (#131)
### 📖 Summary

Both essentially do the same until the very end - only one of each is needed respectively.

### 📑 Build PR Images?

PR images are not needed

### 💬 Details

_No response_

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/131
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2024-01-26 03:19:46 +00:00
pat-s
6629169ce4
debug 2024-01-26 01:36:23 +01:00
pat-s
a374bc0103
test 2024-01-26 01:28:07 +01:00
pat-s
43f3f2fe55
base 10 2024-01-26 01:24:38 +01:00
pat-s
e2caecf8c6
rebuild 2024-01-26 01:17:43 +01:00
pat-s
631646adb2
clean 2024-01-26 00:58:46 +01:00
pat-s
ef200aea35
. 2024-01-26 00:57:38 +01:00
pat-s
f515f04876
get ref from HEAD, set SOURCE_DATE_EPOCH as env and as buildkit output 2024-01-26 00:54:26 +01:00
pat-s
30864596e2
. 2024-01-26 00:10:23 +01:00
pat-s
6f39deaec5
. 2024-01-26 00:08:15 +01:00
pat-s
dd0f373cb4
test 2024-01-26 00:04:40 +01:00
pat-s
e4cd1fea8a
new approach 2024-01-26 00:02:07 +01:00
pat-s
59eeb35b87
test 2024-01-25 23:54:24 +01:00
pat-s
d55785b01d
actually use SOURCE_DATE_EPOCH 2024-01-25 23:52:21 +01:00
pat-s
c0cfcb4103
test image 2024-01-25 23:45:40 +01:00
pat-s
8ebc786409
add SOURCE_DATE_EPOCH build_arg 2024-01-25 19:56:55 +01:00
woodpecker-bot
27d19d77cd chore(deps): update docker docker tag to v25.0.1 2024-01-25 00:08:04 +00:00
woodpecker-bot
bd45f56155 chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v3 (#127)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [woodpeckerci/plugin-docker-buildx](https://codeberg.org/woodpecker-plugins/docker-buildx) ([source](https://codeberg.org/woodpecker-plugins/docker-buildx.git)) | major | `2.3.0` -> `3.0.0` |

---

### Release Notes

<details>
<summary>woodpecker-plugins/docker-buildx (woodpeckerci/plugin-docker-buildx)</summary>

### [`v3.0.0`](https://codeberg.org/woodpecker-plugins/docker-buildx/releases/tag/v3.0.0)

[Compare Source](https://codeberg.org/woodpecker-plugins/docker-buildx/compare/v2.3.0...v3.0.0)

##### Breaking

-   Update to docker engine v25 ([release notes](https://docs.docker.com/engine/release-notes/25.0/))

##### Features

-   Add option to set individual mirrors for all logins ([#&#8203;122](https://github.com/woodpecker-plugins/docker-buildx/issues/122))
-   Add option to enable buildkit debug output ([#&#8203;119](https://github.com/woodpecker-plugins/docker-buildx/issues/119))

##### Dependencies

-   fix(deps): update module github.com/aws/aws-sdk-go to v1.49.21 ([#&#8203;125](https://github.com/woodpecker-plugins/docker-buildx/issues/125))
-   chore(deps): update docker/buildx-bin docker tag to v0.12.1 ([#&#8203;124](https://github.com/woodpecker-plugins/docker-buildx/issues/124))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNDAuMTQiLCJ1cGRhdGVkSW5WZXIiOiIzNy4xNDAuMTQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/127
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2024-01-21 19:08:05 +00:00
woodpecker-bot
8c928fc303 chore(deps): update docker docker tag to v25 (#126) v3.0.0
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| docker | final | major | `24.0.7-dind` -> `25.0.0-dind` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4xNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/126
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2024-01-20 10:57:40 +00:00
6543
5d98a5da22 Add option to set individual mirrors for all logins (#122)
- also address last nits of #119

Co-authored-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/122
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
2024-01-18 18:28:42 +00:00
woodpecker-bot
8367365643 fix(deps): update module github.com/aws/aws-sdk-go to v1.49.21 (#125)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2024-01-17 00:16:44 +00:00
woodpecker-bot
b9250cc7af chore(deps): update docker/buildx-bin docker tag to v0.12.1 (#124)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2024-01-16 00:18:07 +00:00
6543
fef922e92a format via gofumpt (#123)
format code ;)

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/123
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2024-01-15 07:06:52 +00:00
David Kovari
55cc3b1d21 Add option to enable buildkit debug output (#119)
### 📖 Summary

- Add option to enable buildkit debug output
- Formats buildkit.toml using `github.com/pelletier/go-toml/v2`
- Sets docker.io registry mirror based on daemon.mirror setting

Co-authored-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/119
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: David Kovari <dakovari@gmail.com>
Co-committed-by: David Kovari <dakovari@gmail.com>
2024-01-14 23:35:00 +00:00
qwerty287
452d5e2277 Fix author key (#121)
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2024-01-14 22:40:27 +00:00
6543
8596b8b771
fix copy-pase 2024-01-14 21:20:06 +01:00
pat-s
689534359c
add publish_pr_image workflow 2024-01-13 11:26:43 +01:00
qwerty287
f5ac6ccb8e Add logo (#120)
### 📖 Summary

add docker logo

### 📑 Build PR Images?

PR images are not needed

### 💬 Details

_No response_

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/120
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2024-01-13 10:23:26 +00:00
woodpecker-bot
fa58979fa6 fix(deps): update module github.com/aws/aws-sdk-go to v1.49.17 2024-01-09 00:08:31 +00:00
woodpecker-bot
00037ec982 fix(deps): update module github.com/aws/aws-sdk-go to v1.49.16 2024-01-06 00:10:25 +00:00
pat-s
46a8845883
dry-run > dry_run 2024-01-03 17:26:27 +01:00
bretello
fd51808d6e docs: fx dry-run usage (#117)
### 📖 Summary

fix usage of `dry-run` option in docs example. It is supposed to be `dry-run` and not `dry_run`.

See the current docs here: https://woodpecker-ci.org/plugins/Docker%20Buildx for an example

### 📑 Build PR Images?

PR images are not needed

### 💬 Details

_No response_

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/117
Reviewed-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-authored-by: bretello <bretello@distruzione.org>
Co-committed-by: bretello <bretello@distruzione.org>
2024-01-03 14:19:40 +00:00