run docker in docker
This commit is contained in:
parent
ad8583dddd
commit
05a27e8fa9
@ -8,6 +8,10 @@ on:
|
|||||||
- main
|
- main
|
||||||
- ci-test
|
- ci-test
|
||||||
|
|
||||||
|
# Needed until we can incorporate docker startup into the executor container
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: unix:///var/run/dind.sock
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
unit-tests:
|
||||||
name: "Run unit tests"
|
name: "Run unit tests"
|
||||||
@ -18,6 +22,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
- name: "Run dockerd"
|
||||||
|
run: |
|
||||||
|
dockerd -H $DOCKER_HOST --userland-proxy=false &
|
||||||
|
sleep 5
|
||||||
- name: "Run DB container"
|
- name: "Run DB container"
|
||||||
run: |
|
run: |
|
||||||
docker compose -f test/compose.yml up --wait
|
docker compose -f test/compose.yml up --wait
|
||||||
@ -27,9 +35,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/
|
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf https://git.vdb.to/
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
env:
|
|
||||||
DATABASE_HOSTNAME: gitea.local
|
|
||||||
DATABASE_PORT: 8077
|
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
@ -45,8 +50,11 @@ jobs:
|
|||||||
repository: cerc-io/plugeth
|
repository: cerc-io/plugeth
|
||||||
ref: statediff-wip
|
ref: statediff-wip
|
||||||
path: ./plugeth
|
path: ./plugeth
|
||||||
|
- name: "Run dockerd"
|
||||||
|
run: dockerd -H $DOCKER_HOST --userland-proxy=false &
|
||||||
# These images need access tokens configured
|
# These images need access tokens configured
|
||||||
- name: "Build docker image"
|
- name: "Build docker image"
|
||||||
|
if: false
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
|
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user