Commit Graph

59 Commits

Author SHA1 Message Date
Guillaume Tardif 1f8fbe5f11 On GH Actions windows nodes, ensure there is no automatic docker login before running ACI E2E tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-23 14:32:49 +01:00
Guillaume Tardif 2020131105 Add local label automatically
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-11-18 17:23:48 +01:00
Guillaume Tardif e02176004b Document cross build step reason & timing in CI
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-10-15 10:07:17 +02:00
Guillaume Tardif 699f9a3dfb Cross compile in CI
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-10-13 17:16:12 +02:00
Guillaume Tardif 9ad06e55b5 E2e test on metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-10-07 10:11:46 +02:00
Guillaume Tardif 422305fa4e Label PRs touching to protos
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-28 17:19:58 +02:00
Guillaume Tardif 127baa35f2 Update CI workflow to build fine on PRs from forks
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-28 12:34:06 +02:00
Chris Crone 2aea82a7c6 packaging: Add EULA
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-09-22 15:04:16 +02:00
Guillaume Tardif d945c34a55 Adding badge for cloud integration tests.
testing effect of https://github.com/docker/compose-cli/pull/620

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-17 12:19:04 +02:00
Guillaume Tardif d087d665d8 Trying back with pull_request_target event
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-15 11:40:38 +02:00
Guillaume Tardif 5e4470b153 Trying back with pull_request event
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-15 11:35:56 +02:00
Guillaume Tardif f6d26b321c Allow running action labeller on PR from forks, using pull_request-target. Cf https://github.com/actions/labeler/issues/12#issuecomment-670967607
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-15 10:20:32 +02:00
Guillaume Tardif c8824a5421 Update labeler config
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-07 13:26:16 +02:00
Guillaume Tardif aa5244c4e1 Auto-label PRs
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-07 10:26:07 +02:00
Guillaume Lours ae45e08d43 Remove dependabot and add a check-dependencies command in make file
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-26 09:54:01 +02:00
Guillaume Tardif dc7df90115
Merge pull request #523 from docker/test_triggers
Trigger tests manually with “/“ instead of “@“
2020-08-21 09:49:34 +02:00
Guillaume Lours c3bf09a986 CI update dependabot PR - Check that the pusher equal dependabot-preview[bot]
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-20 15:35:20 +02:00
Guillaume Lours 70b3bffaf0 CI update dependabot PR - Check that the pusher startWith depandabot-preview
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-20 14:41:47 +02:00
Guillaume Lours 9e5c122f74 Update dependabot PR to update go.sum file
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-20 14:28:39 +02:00
Guillaume Tardif 666b859f71 Trigger tests manually with “/“ instead of “@“
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-08-20 12:19:43 +02:00
Guillaume Tardif 9b0b1129a6 Build without ecs build flag, not required anymore. Fix context create ecs command not build
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-08-20 10:11:23 +02:00
Guillaume Tardif 3a83d85d7a First ECS E2E test
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-08-19 19:13:23 +02:00
Djordje Lukic b41d216aaa Add import restrictions check
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-08-19 12:31:30 +02:00
Guillaume Lours b4e45bf597 Add a script to check if go.mod and go.sum are up-to-date
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-18 14:57:53 +02:00
Guillaume Lours 8cfcfc8645 Add issue template, Contributing guide and maintainers list
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-18 09:53:57 +02:00
Guillaume Lours 97a50f8d51 Add CI step to check license headers
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-08-17 16:55:25 +02:00
Chris Crone 9d073707b9 deps: Bump Go to 1.15 and Go linter to 1.30
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-08-12 10:36:09 +02:00
Guillaume Tardif d06d5ae358 Document optional test triggers in PR template. Beware, @test-aci or @test-windows in comments will also trigger tests, comments are not ignored for this 2020-08-11 16:49:42 +02:00
Guillaume Tardif 9d5285a1dc Remove debugging 2020-08-11 16:15:09 +02:00
Guillaume Tardif 6e4f580b99 Force all tests on main branch after testing on separate branch 2020-08-11 16:01:13 +02:00
Guillaume Tardif d884835ecb Build aci tests / windows tests on push or on PR that request @test-aci, @test-windows in description 2020-08-11 15:38:10 +02:00
Christopher Crone c26b5ffd97 repo: Move to main branch
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-31 11:11:03 +02:00
aiordache 2471e51b39 set build tag for the ecs context and backend
Signed-off-by: aiordache <anca.iordache@docker.com>
2020-07-30 11:34:34 +02:00
Christopher Crone 8ec9b3c77b dependencies: Bump Golang and linter
* Go 1.14.5
* golangci-lint 1.28.3

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-16 13:22:12 +02:00
Christopher Crone 878783d271 tools: Update Go and linter
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-07 15:29:48 +02:00
Djordje Lukic 7a9a3d0e7e Indent master-ci.yml 2020-07-01 15:15:44 +02:00
Guillaume Tardif efc1d21448 Add ACI e2e tests on windows, do not build with example + local contexts for ACI E2E on linux 2020-06-30 22:19:16 +02:00
Guillaume Tardif 7fac6bf766 Avoid running build/tests/lint twice on master with master.yml 2020-06-30 11:52:44 +02:00
Guillaume Tardif f3cbbc48b8 Aci e2e tests moved to master build only 2020-06-30 10:14:19 +02:00
Guillaume Tardif eda438aaed Added basic support for service principal login, run ACI e2e tests with it 2020-06-29 20:35:23 +02:00
Djordje Lukic e033ca27d2 Run windows build/test only on master
The regular CI will only run on pull requests
2020-06-22 10:16:07 +02:00
Djordje Lukic 652141c993 Use latest version of actions/cache 2020-06-18 09:44:34 +02:00
Djordje Lukic 39042aa8bd Build example and local backend conditionaly
* `make` will build the cli with all backends exnabled
* `make cross` will cross build without the example and local backend

You can still cross compile with all backends by doing

```console
$ BUILD_TAGS=example,local make cross
```

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-06-15 18:02:30 +02:00
Djordje Lukic f0efaf7a79 Remove node test, node-sdk has these tests
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-06-15 11:41:50 +02:00
Guillaume Tardif 93984f8c68 Removed test requiring linux containers 2020-06-11 12:58:58 +02:00
Guillaume Tardif 6bfdded047 Windows CI 2020-06-11 10:44:30 +02:00
Djordje Lukic 11339761ca Change the way a context is stored
Initially we stored the context data in the `Metadata` of the context
but in hindsight this data would be better of in the `Endpoints` because
that's what it is used for.

Before:
```json
{
  "Name": "aci",
  "Metadata": {
    "Type": "aci",
    "Data": {
      "key": "value"
    }
  },
  "Endpoints": {
      "docker": {}
  }
}
```

After:
```json
{
  "Name": "aci",
  "Type": "aci",
  "Metadata": {},
  "Endpoints": {
      "aci": {
          "key": "value"
      },
      "docker": {}
  }
}
```

With this change the contexts that we create are more in line with the contexts the docker cli creates.

It also makes the code less complicated since we don't need to marsal twice any more. The API is nicer too:

```go
// Get a context:
c, err := store.Get(contextName)

// Get the stored endpoint:
var aciContext store.AciContext
if err := contextStore.GetEndpoint(currentContext, &aciContext); err != nil {
	return nil, err
}
```
2020-05-22 16:32:43 +02:00
Djordje Lukic 95e07a2134 Add default context to the context ls output 2020-05-20 18:39:10 +02:00
Djordje Lukic e902e2ad93 Add pull request template 2020-05-20 14:36:46 +02:00
Guillaume Tardif 5c873c1a84 Release CI config 2020-05-18 22:55:50 +02:00