mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-14 10:42:56 -05:00
* build: adds local check for website links * build(make): adds website lint and setup target * docs: fix spellings and hcl blocks * fix(make): phony cmd for missing targets * chore: renames website link check workflow * fix: missing workflow path * build(make): adds golangci-lint target and tool * ci: adds website lint workflow * docs(contributing): adds linter runs * chore: improves naming of workflow jobs * ci: moves website lint job * chore: switches markdown checker imagee to ghcr.io/tcort/markdown-link-check:stable
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
---
|
|
name: Acc Tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "release/**"
|
|
pull_request:
|
|
types: ['opened', 'synchronize']
|
|
paths:
|
|
- '**.go'
|
|
- 'vendor/**'
|
|
- '.github/workflows/**'
|
|
|
|
env:
|
|
GO_VERSION: "1.15"
|
|
GOPROXY: https://gocenter.io,https://proxy.golang.org,direct
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
jobs:
|
|
acc-test:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
fail-fast: true
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.15'
|
|
- run: cat /etc/issue
|
|
- run: bash scripts/gogetcookie.sh
|
|
# 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
|
|
# 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
|
|
- run: sudo cat /etc/default/docker
|
|
- run: sudo service docker restart
|
|
- run: make testacc
|
|
|