mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-31 04:00:06 -05:00
Merge pull request #38 from kreuzwerker/ci-ubuntu2004-workflow
ci: update ubuntu images and docker version
This commit is contained in:
commit
ccec463f6f
6 changed files with 11 additions and 23 deletions
22
.github/workflows/acc-test.yaml
vendored
22
.github/workflows/acc-test.yaml
vendored
|
|
@ -15,10 +15,11 @@ on:
|
|||
env:
|
||||
GO_VERSION: "1.15"
|
||||
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
fail-fast: true
|
||||
steps:
|
||||
|
|
@ -28,27 +29,14 @@ jobs:
|
|||
go-version: '1.15'
|
||||
- run: cat /etc/issue
|
||||
- run: bash scripts/gogetcookie.sh
|
||||
# locally: docker run -it ubuntu:bionic bash (https://ubuntu.pkgs.org/18.04/docker-ce-stable-amd64/)
|
||||
# locally: docker run -it ubuntu-20.04 bash (https://ubuntu.pkgs.org/20.04/docker-ce-stable-amd64/)
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
||||
- run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
- run: sudo apt-get update
|
||||
# apt-cache policy docker-ce
|
||||
- run: sudo apt-get -y install docker-ce=5:19.03.5~3-0~ubuntu-bionic
|
||||
- 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
|
||||
- run: sudo cat /etc/default/docker
|
||||
- run: sudo service docker restart
|
||||
# locally: docker run -it ubuntu:bionic bash (https://ubuntu.pkgs.org/18.04/docker-ce-stable-amd64/)
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
||||
- run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
- run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
- run: sudo apt-get update
|
||||
# apt-cache policy docker-ce
|
||||
- run: sudo apt-get -y install docker-ce=5:19.03.5~3-0~ubuntu-bionic
|
||||
# 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: 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
|
||||
|
|
|
|||
2
.github/workflows/compile.yaml
vendored
2
.github/workflows/compile.yaml
vendored
|
|
@ -18,7 +18,7 @@ env:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
fail-fast: true
|
||||
steps:
|
||||
|
|
|
|||
2
.github/workflows/golangci-lint.yaml
vendored
2
.github/workflows/golangci-lint.yaml
vendored
|
|
@ -8,7 +8,7 @@ on:
|
|||
jobs:
|
||||
golangci:
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: golangci-lint
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -16,7 +16,7 @@ on:
|
|||
- "v*"
|
||||
jobs:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
|
|
|||
2
.github/workflows/unit-test.yaml
vendored
2
.github/workflows/unit-test.yaml
vendored
|
|
@ -18,7 +18,7 @@ env:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
fail-fast: true
|
||||
steps:
|
||||
|
|
|
|||
4
.github/workflows/website.yaml
vendored
4
.github/workflows/website.yaml
vendored
|
|
@ -15,7 +15,7 @@ on:
|
|||
|
||||
jobs:
|
||||
markdown-link-check:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
folder-path: 'website/docs'
|
||||
file-extension: '.markdown'
|
||||
markdown-lint:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: avto-dev/markdown-lint@v1
|
||||
|
|
|
|||
Loading…
Reference in a new issue