Commit graph

42 commits

Author SHA1 Message Date
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 4d1a4cbe2b fix(deps): update module github.com/aws/aws-sdk-go to v1.50.5 2024-01-27 00:08:09 +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
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
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
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 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
woodpecker-bot b518543505 fix(deps): update module codeberg.org/6543/go-yaml2json to v1 (#100) 2023-10-23 14:12:09 +00:00
woodpecker-bot 204732bf49 fix(deps): update module github.com/stretchr/testify to v1.8.4 (#98) 2023-10-23 12:06:22 +00:00
woodpecker-bot db0f4f02d8 fix(deps): update module github.com/sirupsen/logrus to v1.9.3 (#97) 2023-10-23 12:02:41 +00:00
woodpecker-bot 4bc7de4d63 fix(deps): update module github.com/drone-plugins/drone-plugin-lib to v0.4.1 (#96)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/drone-plugins/drone-plugin-lib](https://github.com/drone-plugins/drone-plugin-lib) | require | patch | `v0.4.0` -> `v0.4.1` |

---

### Release Notes

<details>
<summary>drone-plugins/drone-plugin-lib (github.com/drone-plugins/drone-plugin-lib)</summary>

### [`v0.4.1`](https://github.com/drone-plugins/drone-plugin-lib/compare/v0.4.0...v0.4.1)

[Compare Source](https://github.com/drone-plugins/drone-plugin-lib/compare/v0.4.0...v0.4.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC).

🚦 **Automerge**: Enabled.

♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS4xIiwidXBkYXRlZEluVmVyIjoiMzcuMzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: Woodpecker Bot <woodpecker-bot@codeberg.ci>
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/96
Co-authored-by: woodpecker-bot <woodpecker-bot@noreply.codeberg.org>
Co-committed-by: woodpecker-bot <woodpecker-bot@noreply.codeberg.org>
2023-10-23 11:31:58 +00:00
Patrick Schratz b6077f0500 fix(deps): update module honnef.co/go/tools to v0.4.6 2023-10-17 18:00:49 +00:00
Patrick Schratz cfb24b5c90 fix(deps): update module github.com/joho/godotenv to v1.5.1 (#90)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/joho/godotenv](https://github.com/joho/godotenv) | require | minor | `v1.4.0` -> `v1.5.1` |

>  **Important**
>
> Release Notes retrieval for this PR were skipped because no github.com credentials were available.
> If you are self-hosted, please see [this instruction](https://github.com/renovatebot/renovate/blob/master/docs/usage/examples/self-hosting.md#githubcom-token-for-release-notes).

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNi4wIiwidXBkYXRlZEluVmVyIjoiMzcuMjYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/90
2023-10-17 15:43:22 +00:00
Patrick Schratz 9da535bc03 fix(deps): update module github.com/urfave/cli/v2 to v2.25.7 (#91)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/urfave/cli/v2](https://github.com/urfave/cli) | require | minor | `v2.16.3` -> `v2.25.7` |

>  **Important**
>
> Release Notes retrieval for this PR were skipped because no github.com credentials were available.
> If you are self-hosted, please see [this instruction](https://github.com/renovatebot/renovate/blob/master/docs/usage/examples/self-hosting.md#githubcom-token-for-release-notes).

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNi4wIiwidXBkYXRlZEluVmVyIjoiMzcuMjYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/91
Co-authored-by: Patrick Schratz <pat-s@mailbox.org>
Co-committed-by: Patrick Schratz <pat-s@mailbox.org>
2023-10-17 15:39:40 +00:00
6543 33b6eb4faa bump buildx and golang (#58)
- use golang v1.20
- use buildx v0.10.4
  (to have buildkit v0.11.2)

Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/58
Reviewed-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2023-03-22 15:26:29 +00:00
6543 ccd5834d4c Enhance SemVersion detection (#52)
close #51

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/52
Reviewed-by: Lauris BH <lafriks@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2022-12-21 17:11:09 +00:00
6543 fca44ab7ae Fix func to determine default login (#29)
only add default login if auth profided or no login entry exist

Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/29
Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2022-10-11 11:38:36 +02:00
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
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
Matti R 08ccc7e86c
prelim to switch to woodpecker plugin 2021-10-12 23:40:58 -04: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
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] 562ee26fda
fix(deps): update module honnef.co/go/tools to v0.2.0 (#27)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-25 17:44:48 +02:00
Robert Kaussow 5f01026c5c
chore: update build env to golang 1.16 (#26) 2021-05-10 09:03:59 +02:00
renovate[bot] 421de00a8e
fix(deps): update module github.com/sirupsen/logrus to v1.8.1 (#18)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-10 08:16:36 +01:00
renovate[bot] ef505ec241
chore(deps): update module sirupsen/logrus to v1.8.0 (#13)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-17 22:10:49 +01:00
renovate[bot] dbaf922a53
chore(deps): update module sirupsen/logrus to v1.7.1 (#12)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-16 11:57:34 +01:00
Robert Kaussow c746174ca4
chore(deps): update dependencies 2021-01-17 20:56:53 +01:00
Robert Kaussow 2496502ff6
fix staticcheck 2021-01-11 22:06:24 +01:00
Robert Kaussow ba28c39a7d
refactor: update dependencies and use plugin boilerplate 2021-01-11 21:54:49 +01:00
Robert Kaussow 441d5a1f52
cleanup go dependencies 2021-01-11 00:33:59 +01:00
Robert Kaussow 89b0b6823a
fork: initial release 2021-01-10 23:47:55 +01:00
Adam Tran af9fdad1d9 update urfave/cli to 1.22.2 2020-01-02 16:32:11 -05:00
Adam Tran c69ad3dfaf remove urfave/cli 2020-01-02 11:40:30 -05:00
Adam Tran c6dab33e03 Update AWS SDK 2020-01-02 09:42:44 -05:00
Thomas Boerger 76ac11d221
Use FilePath enabled urfave/cli lib 2019-01-21 21:50:31 +01:00
Thomas Boerger 17dc3bc6be
Switch to go modules instead of go dep 2019-01-21 21:50:30 +01:00