mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-05 14:29:38 -05:00
fix/workflows (#169)
* fix: align gh wf path with go.mod and remove vendor dir * fix: removes duplicated go version env * chore: extract docker ce version as env * chore: removes leading yaml lines
This commit is contained in:
parent
d1529ddc48
commit
b1a5b526d5
6 changed files with 8 additions and 14 deletions
7
.github/workflows/acc-test.yaml
vendored
7
.github/workflows/acc-test.yaml
vendored
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
name: Acc Tests
|
||||
on:
|
||||
push:
|
||||
|
|
@ -9,13 +8,13 @@ on:
|
|||
types: ['opened', 'synchronize']
|
||||
paths:
|
||||
- '**.go'
|
||||
- 'vendor/**'
|
||||
- go.mod
|
||||
- '.github/workflows/**'
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.16"
|
||||
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
DOCKER_CE_VERSION: "5:20.10.1~3-0~ubuntu-focal"
|
||||
|
||||
jobs:
|
||||
acc-test:
|
||||
|
|
@ -41,7 +40,7 @@ jobs:
|
|||
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
- run: sudo apt-get update
|
||||
# list available docker versions: apt-cache policy docker-ce
|
||||
- run: sudo apt-get -y install docker-ce=5:20.10.1~3-0~ubuntu-focal
|
||||
- run: sudo apt-get -y install docker-ce=${DOCKER_CE_VERSION}
|
||||
- run: docker version
|
||||
# Allow local registry to be insecure
|
||||
- run: sudo sed 's/DOCKER_OPTS="/DOCKER_OPTS="--insecure-registry=127.0.0.1:15000 /g' -i /etc/default/docker
|
||||
|
|
|
|||
4
.github/workflows/compile.yaml
vendored
4
.github/workflows/compile.yaml
vendored
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
name: Compile Binaries
|
||||
on:
|
||||
push:
|
||||
|
|
@ -9,11 +8,10 @@ on:
|
|||
types: ['opened', 'synchronize']
|
||||
paths:
|
||||
- '**.go'
|
||||
- 'vendor/**'
|
||||
- go.mod
|
||||
- '.github/workflows/**'
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.16"
|
||||
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
1
.github/workflows/golangci-lint.yaml
vendored
1
.github/workflows/golangci-lint.yaml
vendored
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
name: golangci-lint
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
go-version: '1.16'
|
||||
- name: Import GPG key
|
||||
id: import_gpg
|
||||
uses: paultyng/ghaction-import-gpg@v2.1.0
|
||||
|
|
|
|||
4
.github/workflows/unit-test.yaml
vendored
4
.github/workflows/unit-test.yaml
vendored
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
name: Unit Tests
|
||||
on:
|
||||
push:
|
||||
|
|
@ -9,11 +8,10 @@ on:
|
|||
types: ['opened', 'synchronize']
|
||||
paths:
|
||||
- '**.go'
|
||||
- 'vendor/**'
|
||||
- go.mod
|
||||
- '.github/workflows/**'
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.16"
|
||||
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
4
.github/workflows/website-lint.yaml
vendored
4
.github/workflows/website-lint.yaml
vendored
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
name: Docs and Website Lint
|
||||
on:
|
||||
push:
|
||||
|
|
@ -14,6 +13,7 @@ on:
|
|||
env:
|
||||
GO_VERSION: "1.16"
|
||||
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
|
||||
DOCKER_CE_VERSION: "5:20.10.1~3-0~ubuntu-focal"
|
||||
|
||||
jobs:
|
||||
website-lint-spellcheck-tffmt:
|
||||
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
- run: sudo apt-get update
|
||||
# list available docker versions: apt-cache policy docker-ce
|
||||
- run: sudo apt-get -y install docker-ce=5:20.10.1~3-0~ubuntu-focal
|
||||
- run: sudo apt-get -y install docker-ce=${DOCKER_CE_VERSION}
|
||||
- run: docker version
|
||||
- run: make setup
|
||||
- run: make website-lint
|
||||
|
|
|
|||
Loading…
Reference in a new issue