mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-16 03:32:55 -05:00
* 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
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: Acc Tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "release/**"
|
|
pull_request:
|
|
types: ['opened', 'synchronize']
|
|
paths:
|
|
- '**.go'
|
|
- go.mod
|
|
- '.github/workflows/**'
|
|
|
|
env:
|
|
GOPROXY: https://proxy.golang.org,direct
|
|
DEBIAN_FRONTEND: noninteractive
|
|
DOCKER_CE_VERSION: "5:20.10.5~3-0~ubuntu-focal"
|
|
GO_VERSION: "1.16"
|
|
|
|
jobs:
|
|
acc-test:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
terraform_version:
|
|
- "0.12.31"
|
|
- "0.13.7"
|
|
- "0.14.11"
|
|
- "0.15.2"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup cookies
|
|
run: |
|
|
cat /etc/issue
|
|
bash scripts/gogetcookie.sh
|
|
- name: Setup docker version ${{ env.DOCKER_CE_VERSION }}
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
sudo apt-get update
|
|
sudo apt-get -y install docker-ce=${DOCKER_CE_VERSION}
|
|
docker version
|
|
sudo service docker restart
|
|
- name: Run acceptance tests
|
|
run: make testacc
|
|
env:
|
|
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform_version }}
|