Commit graph

84 commits

Author SHA1 Message Date
Martin
b53a6ba6e4
fix: Correctly get and set nanoCPUs for docker_container (#771) 2025-08-13 16:33:16 +02:00
renovate[bot]
c33013cf0c
chore(deps): update actions/checkout action to v5 (#768)
* chore(deps): update actions/checkout action to v5

* chore: Update docs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin Wentzel <nitram.wentzel@gmail.com>
2025-08-12 16:29:43 +02:00
renovate[bot]
a1b801f1f4
chore(deps): update golangci/golangci-lint-action action to v8 (#718)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-07 10:50:10 +02:00
Martin
dacb5dfe73
chore: Upgrade golangci-lint to next major version (#686)
* chore: Upgrade golangci-lint to next major version

* chore: Add //nolint to new tests

---------

Co-authored-by: Martin Wentzel <junker@monoceres.uberspace.de>
2025-04-15 18:54:25 +02:00
Martin
cfcb6f2cf6
Chore: prepare release 3.1.2 (#688)
* chore: Use correct permissions statement in release workflow

* chore: Prepare release v3.1.2

---------

Co-authored-by: Martin Wentzel <junker@monoceres.uberspace.de>
2025-04-15 08:39:11 +02:00
Martin
8c4fd6bbba
Chore: Prepare release 3.1.1 (#687)
* chore: Update gorelease publish github token

* chore: Update makefile commands to match new svi version

* chore: Prepare release v3.1.1

---------

Co-authored-by: Martin Wentzel <junker@monoceres.uberspace.de>
2025-04-14 23:26:12 +02:00
Jonatan Reiners
4e6ef4b2e6
Update Terraform version to 1.8.x in acceptance test GitHub Actions workflow. (#626) 2025-04-09 23:40:39 +02:00
Jonatan Reiners
7155ab079c
update-dockerignore-for-context-ignore (#625)
* 🚀 Fix the GitHub Actions workflow config to properly trigger on all Go files.

*  Ignore testing files for script in .gitignore.
2024-06-04 17:14:13 +02:00
renovate[bot]
d4a6e7b6ad
chore(deps): update hashicorp/setup-terraform action to v3 (#616)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 16:47:17 +02:00
renovate[bot]
d122ff1b9b
chore(deps): update golangci/golangci-lint-action action to v6 (#615)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 16:47:23 +02:00
Jonatan Reiners
09528d1c0e
chore: update Go version to 1.22 for consistency across workflows, jo… (#613)
* chore: update Go version to 1.22 for consistency across workflows, jobs, and modules.

* build: Update GitHub Actions setup-go and golangci-lint versions.

* refactor: Replace ioutil.ReadFile and ioutil.ReadAll with os.ReadFile and io.ReadAll.

* go fmt

* 🔄 Update actions/checkout and actions/setup-go to v4 and v5, respectively.

*  Refactor: Add b64 function to convert file to base64 in testacc_setup.sh.

*  Update Go version requirement in CONTRIBUTING.md.

*  Fix typo and improve error message format.

*  enhance: Improve error message in TestAccDockerContainer_uploadAsBase64.

*  Fix: Update file permissions for test2.txt in docker container tests.
2024-05-08 14:59:49 +02:00
renovate[bot]
769e8620df
chore(deps): update goreleaser/goreleaser-action action to v4 (#485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-22 14:22:03 +01:00
renovate[bot]
4eb65f64db
fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.24.0 (#456)
* fix(deps): update module github.com/hashicorp/terraform-plugin-sdk/v2 to v2.24.0

* chore: Improve golangci-lint makefile command.

* fix: Add setup-go to golang lint workflow.

* fix: Correct intendation for lint workflow.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
Co-authored-by: Martin Wentzel <martin.wentzel@kreuzwerker.de>
2022-10-21 17:43:22 +02:00
Martin
7f114046e2
feat: Update used goversion to 1.18. (#449) 2022-09-01 15:35:14 +02:00
Martin Wentzel
55cef36541 Revert "fix(deps): update module github.com/golangci/golangci-lint to v1.48.0 (#423)"
This reverts commit 6a35b2182e.
2022-08-10 16:00:23 +02:00
renovate[bot]
6a35b2182e
fix(deps): update module github.com/golangci/golangci-lint to v1.48.0 (#423)
* fix(deps): update module github.com/golangci/golangci-lint to v1.48.0

* fix: Fix compile.yaml workflow. (#431)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Martin <Junkern@users.noreply.github.com>
2022-08-10 15:54:53 +02:00
Martin
c1b39d282b
chore: Reduce time to setup AccTests (#430)
* feat: Download static docker image in acc_tests

* feat: Removing docker install from acc test job.

* feat: Only run private registry for selected tests.

* chore: Remove not needed env variables from acc-tests.

* chore: Ignore compile job for tags and test-only commits.

* chore: Remove vet and errcheck from Makefile.
2022-08-10 14:50:38 +02:00
Martin
777e292b7f
feat: Implementation of docker_tag resource. (#418)
* feat: Basic implementation of docker_tag resource.

* feat: Adding new AccDockerTag tests to ci pipeline.

* fix: Update failing tests.

* docs: Update tags documentation.

* fix: Fix docker_tags test.

* fix: docker_tag tests now download platform specific images.

* fix: also pull correct busybox image for dockert_tag test.
2022-07-28 14:03:16 +02:00
renovate[bot]
f7c715039e
chore(deps): update goreleaser/goreleaser-action action to v3 (#389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 10:00:13 +02:00
renovate[bot]
be5cc0b0c6
chore(deps): update actions/setup-go action to v3 (#353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 09:23:59 +02:00
renovate[bot]
6ac477b3c1
chore(deps): update actions/checkout action to v3 (#354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 10:58:05 +02:00
Martin
cf2cb85e4c
fix: Switch to proper go tools mechanism to fix website-* workflows. (#399)
* fix: Switch to proper go tools mechanism.

* fix: Add missing changes of website-lint github action.

* fix: Re-add some commands to make setup.

* docs: Fix service markdown file.

* fix(deps): Update golangci-lint version to match the one used in github action.

* fix: Add missing entry to go.sum
2022-07-11 14:55:15 +02:00
Martin
dc8757e5f3
feat(src): Enable buildkit when client has support. (#387)
* feat(src): Enable buildkit when client has support.

* fix: Increase timeout of testsuite to 12min

* fix: docker_image datasource tests use smaller busybox image.

* fix: Use image version which are available on arm64.

* fix: Remove session dialer from buildkit implementation.

Did not do really anything

* feat: Buildkit is now working.

* fix: Disable linting for one specific line.

* fix: Fixes TestAccDockerImage_basic test.

The used image names in the two subtests must be different.
2022-06-23 10:32:31 +02:00
Martin
4284adb0ec
fix(ci): Pipeline updates (#390)
* fix(ci): Increase github actions timeout to 15 min.
* fix(ci): Add testdata to renovate ignorePaths.
2022-06-21 08:57:18 +02:00
Martin
7e569e1813
chore(ci): Update website-generation workflow (#386)
* chore(ci): Update website-generation workflow

* chore(docs): Apply new formatting.

* chore: Add update go.mod and go.sum files.
2022-06-17 12:09:59 +02:00
Manuel Vogel
3926de97a2
chore(ci): split acc test into resources (#382)
* chore(ci): split acc test into resources

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix: bump terraform-plugin-sdk/v2 to v2.16.0

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): Set fail-fast to false.

* fix(ci): reduce to tf version 0.15.x and 1.1.x

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): us tf version gh action

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): env name for TESTSUITE_TIMEOUT

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(ci): increase test suite timeout to 480s

Signed-off-by: Manuel Vogel <mavogel@posteo.de>

* fix(src): Replace deprecated plugin.Debug with plugin.Serve.

Co-authored-by: Martin Wentzel <martin.wentzel@kreuzwerker.de>
2022-06-09 15:32:45 +02:00
renovate[bot]
28ffab5e1f
chore(deps): update golangci/golangci-lint-action action to v3 (#352)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2022-04-22 15:45:28 +02:00
Shunsuke Suzuki
b3bcdde93a
chore: remove the workflow to close stale issues and pull requests (#371) 2022-04-22 12:00:28 +02:00
renovate[bot]
7fc945d01b
fix(deps): update module github.com/golangci/golangci-lint to v1.43.0 (#306)
* fix(deps): update module github.com/golangci/golangci-lint to v1.43.0
* chore(ci): bump golangci-lint version
* fix: linter issues
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-12-02 10:58:17 +01:00
renovate[bot]
3c5bacfe22
chore(deps): update tj-actions/verify-changed-files action to v8.8 (#308)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-01 17:38:02 +01:00
renovate[bot]
e07e766681
fix(deps): update module github.com/docker/docker to v20.10.10 (#297)
* fix(deps): update module github.com/docker/docker to v20.10.10
* chore(ci): adapt acc test docker version
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-11-30 16:26:54 +01:00
renovate[bot]
8faa106a4b
chore(deps): update tj-actions/verify-changed-files action to v8.3 (#303)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 09:25:39 +09:00
renovate[bot]
17fe815913
chore(deps): update tj-actions/verify-changed-files action to v8 (#299)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 19:18:18 +02:00
Manuel Vogel
20d46638a2
chore(ci): update workflows and docs to go 1.17 2021-09-07 16:13:36 +02:00
renovate[bot]
aa01a2978e
chore(deps): update tj-actions/verify-changed-files action to v7.2 (#285)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 08:53:15 +02:00
Manuel Vogel
3f93984d9c
chore(ci): adapt acc test docker version (#266) 2021-08-10 17:43:11 +09:00
renovate[bot]
24d9f9690e
chore(deps): update actions/stale action to v4 (#250)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-14 18:22:38 +02:00
Manuel Vogel
4768b24df5
feat: support terraform v1 (#242)
* chore(ci): add tf v1.0.1
* chore(ci): bump tf v0.15 to 5
2021-07-07 11:04:07 +02:00
renovate[bot]
b3dc87c6a1
chore(deps): update tj-actions/verify-changed-files action to v7 (#237)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-26 17:41:45 +02:00
renovate[bot]
1ebe5511ef
fix(deps): update module github.com/docker/docker to v20.10.7 (#218)
* fix(deps): update module github.com/docker/docker to v20.10.7
* chore: update GitHub actions and testacc file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-06-21 09:55:55 +02:00
renovate[bot]
eaee1edf91
fix(deps): update module github.com/golangci/golangci-lint to v1.41.1 (#226)
* fix(deps): update module github.com/golangci/golangci-lint to v1.41.1
* fix(ci): update action golangci-lint to v1.41.1

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-06-21 09:28:25 +02:00
Manuel Vogel
4d40b84443
fix/service image name (#212)
* fix(service): remove image name suppress function
* feat: add docker image data-source
* docs(service): add example for iamge datasource usage
* fix: image repo digest with tag determination
* fix: always return a repoDigest
* fix(image): deprecation notice for latest attribute
* fix(ci): explicitly go get tfplugindocs
* fix(ci): remove gocenter.io proxy
2021-06-21 09:24:02 +02:00
renovate[bot]
e1630b2281
fix(deps): update module github.com/golangci/golangci-lint to v1.40.1 (#194)
* chore: bump tools golang version to 1.16

* fix(deps): update module github.com/golangci/golangci-lint to v1.40.1

* chore(ci): bump golangci-lint to use v1.40.1

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-31 13:27:46 +02:00
Manuel Vogel
0588c2071b
chore/refactor tests (#201)
* chore: format test configs for datasources

* chore: outlines load test config helper and structure

* docs(contributing): add command for resouce tests

to have an example of the regex

* refactor: move container test configs into separate files

* fix: add insecure_skip_verify for image pulls

to fix the local test setup with invalid certs

* chore(ci): remove insecure registry adaption

* chore: regenerate website

* chore: update gitignore for scipts/testing dir

* fix: replace nodejs services with go versions

* fix: move testing program versions in separate files

* test: reactivate flaky test from travis

* chore: fix linter on all go files

* fix(linter): testing go servers

* chore(ci): add env for go version

* chore(ci): name workflow steps

also moves description of available docker versions in to acc dockerfile

* Revert "test: reactivate flaky test from travis"

This reverts commit b02654acc4d6b7d02c8f3ba090e6a3f248741b10.

* docs: fix provider-ssh example

* chore: use alpine als final image for tests

* refactor: move test configs from folder into testname.tf files

* refactor: image delete log is now debug and indented

* refactor: image test config into seprate files

* refactor: move network test config into seperate files

* refactor: move plugin test config into seperate files

* chore: rename registry image test file

* refactor: move registry_image test config into seperate files

* chore: format secret test configs

* refactor: inline volume test configs

* fix: remove unused volume label test function

* refactor: move service test configs into seperate files

* test: reactivate and fix service test

* chore: simplify insecure skip verify add to http client

* chore(ci): debug into service test

* chore(ci): add testacc setup

* chore: format tf config for provider test

* chore(ci): add debug output for config.json

* fix: check service auth for emptyness

* fix: remove re-read of provider auth config

because the bug occured only in CI as the meta object might be GCd

* test: pass auth to service instead of provider

* chore: reactivate all acc tests

* test: outlines service inspect json check for full spec

* test: add service inspect json checks

* test: finish service inspect json checks

* chore(service): move test helper to end to of the file

* chore: move mapEquals to test helpers

* test: add json inspect for config

* chore: add debug inspect log for plugin, secret and volume

* test: add json inspect for secret

* test: add json inspect for image

* test: add json inspect for network

* test: add json inspect for plugin

* test: add json inspect for volume

* test: inline ds plugin test configs

* test: inline network configs

* test: move ds reg image configs into separate files

* test: reactivates container upload checks

* chore: adapt issues ref from old to new xw repo

* fix: reactivate network ingress test

and provide helpers for removing the default ingress network and leaving the swamr

* docs: rerun website gen

* test: fix reg image build and keep test

* chore: add name to todo

* chore: move ds network and plugin specs to file

* chore: format provider test spec

* chore: use simpler error message for empty strings
2021-05-31 16:11:49 +09:00
renovate[bot]
a99c73c28b
chore(deps): update tj-actions/verify-changed-files action to v6.2 (#200)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-23 12:36:44 +02:00
Manuel Vogel
6c796e15a5
feat/doc generation (#193)
* chore: add tfplugindocs tool

* feat: add tfplugin doc dependency and make target

* chore: apply documentation generation

* docs(contributing): update for documentation generation

* fix: adapt website-lint target to new do folder

* docs(network): update ds descriptions

* docs: add template for index.md

* docs: add network resource generation

* chore(ci): updates paths for website checks

* docs: add plugin data source generation

* docs: add import cmd for network resource

* docs: add plugin resource generation

* feat: outlines remaining resources with example and import cmd

* feat: add descriptions to docs

* chore: add DevSkim ignores and fix capitalized errors

* docs: complete ds registry image

* docs: add container resource generation

* docs: add lables description to missing resources

* docs: remove computed:true from network data

so the list is rendered in the description

* Revert "docs: remove computed:true from network data"

This reverts commit dce9b7a5a2.

* docs: add docker image descriptions to generate the docs

* docs: add docker registry image descriptions to generate the docs

* docs: add docker service descriptions to generate the docs

* docs: add docker volume descriptions to generate the docs

* docs(index): clarifies description

so more docker resources are mentioned

* docs(network): fixes required and read-only attributes

so the ds can only be read by-name

* docs(plugin): clarifies the ds docs attributes

* docs: fix typo registry image ds

* docs(config): clarifies attributes and enhances examples

Provide a long example and import command

* fix(config): make data non-sensitive

Because only secrets data is

* docs(containter): clarifies attributes

and enhances examples with import

* docs(config): fix typo

* docs(image): clarifies attributes and remove import

* docs(network): clarifies attributes and adapts import

* docs(plugin): clarifies attributes and import

* docs(registry_image): clarifies attributes and removes import

* chore(secret): remove typo

* docs(service): clarifies attributes and import

* docs(volume): clarifies attributes and import

* fix: correct md linter rules after doc gen

* docs(volume): regenerated

* docs: add config custom template

* docs: add templates for all resources

* docs(config): templates all sections and examples

for better redability and structure

* docs(config): fix md linter

* docs(container): templates all sections and examples

* docs(image): templates all sections and examples

* docs(image): fix import resource by renaming

* docs(network): templates all sections and examples

* docs(service): templates all sections and examples

* docs(volume): templates all sections and examples

* fix(lint): replace website with doc directory

* fix(ci): link check file extension check

* fix: markdown links

* chore: remove old website folder

* chore: fix website-lint terrafmr dir and pattern

* fix: lint fix target website folder

* fix: website links

* docs(provider): update examples

with templates on auth and certs

* docs(provider): add tf-plugin-docs line

* docs(contributing): split doc generation section

* docs: final brush up for readability and structure

* chore(ci): add website-generation job

to see if files changed and it should run locally again

* chore(ci): remove explicit docker setup

from website lint because it's installed by default
2021-05-21 21:30:56 +09:00
renovate[bot]
696739b47c
fix(deps): update module github.com/golangci/golangci-lint to v1.40.0 (#191)
* fix(deps): update module github.com/golangci/golangci-lint to v1.40.0

* chore: bump tools golang version to 1.16

* chore: tidy tools

* chore(ci): bump golangci-lint to v1.40

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2021-05-11 09:30:35 +02:00
Manuel Vogel
c404e0ae51
fix: replace for loops with StateChangeConf (#182)
* fix: create container refresh function
* fix: adapt statefunc delays and timeouts to reflect for loop
* feat: add testaccDockerfile for local development
* chore(ci): bump terraform versions and add 0.15.2
2021-05-11 08:59:40 +02:00
Manuel Vogel
ca26635625
fix: skip sign on compile action 2021-04-21 14:12:36 +02:00
Manuel Vogel
bcf09fe2b8
fix(compile): remove gpg key from action to make it work in forks 2021-04-21 14:01:41 +02:00