Commit graph

598 commits

Author SHA1 Message Date
woodpecker-bot f61c066940 chore(deps): update golang docker tag to v1.22 2024-02-08 11:39:52 +00:00
woodpecker-bot 4b8b7aaf73 fix(deps): update module github.com/aws/aws-sdk-go to v1.50.13 2024-02-08 11:04:56 +00:00
woodpecker-bot 699844458c chore(deps): update docker docker tag to v25.0.3 2024-02-08 10:35:03 +00:00
woodpecker-bot 89771161a0 chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v3.0.1 2024-02-04 00:16:16 +00:00
woodpecker-bot 8a80dd4ef6 chore(deps): update docker docker tag to v25.0.2 2024-02-03 00:09:02 +00: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
woodpecker-bot 4d1a4cbe2b fix(deps): update module github.com/aws/aws-sdk-go to v1.50.5 2024-01-27 00:08:09 +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
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)
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
woodpecker-bot 5be066ff28 chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v2.3.0 2024-01-02 00:08:16 +00:00
pat-s f7ad298bfa
update README 2024-01-01 22:21:41 +01:00
pat-s ff8ada357e
add config.yml to issue template 2024-01-01 22:03:24 +01:00
pat-s 5dd0b39678
fix issue template issues 2024-01-01 21:57:58 +01:00
pat-s b39f5dc372
update issue and pr templates 2024-01-01 21:53:40 +01:00
OCram85 0d7dfb2566 adds gitea meta template files for pull requests and issues (#103)
adds gitea metafiles for:

- Pull-Request template
  - https://gitea.ocram85.com/OCram85/gitea-template-test/compare/main...placeholer
- Issue-Templates
  - Bug report related
    - https://gitea.ocram85.com/OCram85/gitea-template-test/issues/new?template=.gitea%2fISSUE_TEMPLATE%2fBug.yml
  - Feature request related
    - https://gitea.ocram85.com/OCram85/gitea-template-test/issues/new?template=.gitea%2fISSUE_TEMPLATE%2fFeature.yml
  - Question related
    - https://gitea.ocram85.com/OCram85/gitea-template-test/issues/new?template=.gitea%2fISSUE_TEMPLATE%2fQuestion.yml
  - Default template
    - https://gitea.ocram85.com/OCram85/gitea-template-test/issues/new?

>  **Note**: The templates come with their own fields and also maps the correct issue labels on creation.
>
> Follow the links to show an input preview.

![image](/attachments/9c9d42b7-4c1f-47a8-9ae6-818e641ed096)

Co-authored-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/103
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Co-committed-by: OCram85 <marco.blessing@googlemail.com>
2024-01-01 20:33:44 +00:00
woodpecker-bot 2b05d0a014 fix(deps): update module github.com/urfave/cli/v2 to v2.27.1 2023-12-31 00:16:53 +00:00
pat-s 5f5b2d4161 Document ECR settings and prefix settings with ecr_ (#115)
Prefixing to make the settings easier to distinguish from non-ECR ones.

Also expanded the multi-repo push example.

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/115
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-12-30 13:50:43 +00:00
pat-s e93554e4bc feat: add support for AWS ECR (#110)
fix #74

Mainly borrowed from https://github.com/drone-plugins/drone-docker/tree/master/cmd/drone-ecr.

`drone/ecr` is still on 20.10.14 and sparsely updated/maintained. Would be great to add support for additional registries like ECR to buildx.
The login process is as follows:

1. Call the AWS API with some arguments to get a short-lived auth token (12h)
2. Use the token and Username `AWS` for the `docker login` call

## Notes

- To push to ECR, the full registry URL must be given in the tag, i.e. `registry/owner/repo`. For this, `Registry` must also be added the to `Build` struct besides the `Settings` struct
- For now I've only referenced the source in `ecr.go` by using the most recent commit of today. Should this be done differently?
- The implementation here from me is simple and probably a bit "naive" as this is my first "real" golang feature PR.
- I've tested this change with a custom image and was able to successfully push to ECR while dynamically creating a repository. Proper tests would still be great...
- Vars `assumeRole` and `externalID` are somehow not exposed in https://plugins.drone.io/plugins/ecr and I am not sure if this is by design or because they were just forgotten. Anyhow, this is reason I didn't expose them for now and just added internal dummy vars.
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-12-29 22:06:37 +00:00
woodpecker-bot cb851be7df fix(deps): update module github.com/urfave/cli/v2 to v2.27.0 2023-12-27 00:09:24 +00:00
woodpecker-bot a5864fb416 fix(deps): update module github.com/urfave/cli/v2 to v2.26.0 (#114)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-12-04 00:20:44 +00:00
woodpecker-bot 75f4ccee62 fix(deps): update module github.com/drone-plugins/drone-plugin-lib to v0.4.2 2023-11-23 00:09:54 +00:00
pat-s aaad385133
run testst on renovate/* branches 2023-11-22 12:57:40 +01:00
woodpecker-bot dd7bec809c chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v2.2.1 (#112)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-11-21 00:15:54 +00:00
pat-s d771a60d94
pin docker version on patch level 2023-11-19 13:28:17 +01:00
woodpecker-bot 43d3ea541b chore(deps): update docker/buildx-bin docker tag to v0.12.0 (#111)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-11-19 00:31:29 +00:00
pat-s da8571c718 Add git to image (#109)
Current runs of the plugin output the following

```
WARNING: buildx: git was not found in the system. Current commit information was not captured by the build
```

adding `git` should solve this.

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/109
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-11-08 02:42:05 +00:00
pat-s 21518998d8
remove sha tags 2023-11-03 07:41:43 +01:00
Thomas Renes 4c119d46fc Fix separator for tags_file in docs (#107)
This fixes an error in the documentation. Multiple tags in tags_file are separated by a newline instead of a comma.

See: 5116f6263f/plugin/impl.go (L138)

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/107
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: Thomas Renes <thomas@renesweb.nl>
Co-committed-by: Thomas Renes <thomas@renesweb.nl>
2023-11-01 10:32:01 +00:00
pat-s 5116f6263f
renovate: use org config 2023-10-30 09:33:19 +01:00
woodpecker-bot b71ce15f17 chore(docker): update docker:24.0-dind docker digest to 1dfc375 (#106)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-10-30 00:15:18 +00:00
woodpecker-bot 3d64e92383 chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v2.2.0 (#102)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
2023-10-25 10:45:16 +00:00
pat-s e29bb19c9d
add gitea release plugin 2023-10-25 12:31:29 +02:00
OCram85 a0371f8850 adds driver-opt arg as plugin parameter (#93)
#### 📖 Summary

Adds `--driver-opt` buildx arg as plugin parameter. This should make it possible to pass through proxy settings.

#### 📑 Test Plan

> 💡 Select your test plan for the code changes.

-  [x] CI pipeline tests
- Custom test
-  No test plan

##### Details / Justification

Manually tested on own instance behind corporate proxy:

![image](/attachments/b65d981d-c9b8-4228-8e9c-61fa517d98b6)

Unfortunately  the `--build-arg` passthru seems not working

#### 📚 Additional Notes

- fixes #82
- still to do:
  - [x] update docs
  - [x] add usage example

> 💡NOTE: This is my first contribution in this codebase. Feedback and help is probably needed 😸

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/93
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Co-committed-by: OCram85 <marco.blessing@googlemail.com>
2023-10-25 09:58:02 +00:00
woodpecker-bot c8fa946f16 chore(deps): update docker docker tag to v24 (#99)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| docker | final | major | `20.10-dind` -> `24.0-dind` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - "before 4am" (UTC).

🚦 **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMzEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: woodpecker-bot <woodpecker-bot@codeberg.ci>
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/99
Co-authored-by: woodpecker-bot <woodpecker-bot@noreply.codeberg.org>
Co-committed-by: woodpecker-bot <woodpecker-bot@noreply.codeberg.org>
2023-10-23 14:28:30 +00:00
woodpecker-bot b518543505 fix(deps): update module codeberg.org/6543/go-yaml2json to v1 (#100) 2023-10-23 14:12:09 +00:00