Merge pull request #6149 from dokku/josegonzalez-patch-1
Fix issue where CI cannot install docker-compose-plugin
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -14,6 +14,9 @@ concurrency:
|
|||||||
group: build-${{ github.event.pull_request.number || github.ref }}
|
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
INSTALL_DOCKER_REPO: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-commit:
|
check-commit:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
@@ -138,7 +141,7 @@ jobs:
|
|||||||
# uses: luchihoratiu/debug-via-ssh@main
|
# uses: luchihoratiu/debug-via-ssh@main
|
||||||
# with:
|
# with:
|
||||||
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
|
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
|
||||||
# SSH_PASS: ${{ secrets.SSH_PASS }}
|
# SSH_PASS: ${{ secrets.NGROK_SSH_PASS }}
|
||||||
|
|
||||||
- name: run ci
|
- name: run ci
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|||||||
10
tests.mk
10
tests.mk
@@ -42,7 +42,15 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ci-dependencies: bats shellcheck xmlstarlet
|
ci-dependencies: bats shellcheck xmlstarlet docker-compose-apt-repo
|
||||||
|
|
||||||
|
docker-compose-apt-repo:
|
||||||
|
ifdef INSTALL_DOCKER_REPO
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor --yes -o /usr/share/keyrings/docker.gpg
|
||||||
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(shell . /etc/os-release && echo "$$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list
|
||||||
|
sudo apt update
|
||||||
|
sudo apt-get -qq -y --no-install-recommends install docker-compose-plugin
|
||||||
|
endif
|
||||||
|
|
||||||
setup-deploy-tests:
|
setup-deploy-tests:
|
||||||
ifdef ENABLE_DOKKU_TRACE
|
ifdef ENABLE_DOKKU_TRACE
|
||||||
|
|||||||
Reference in New Issue
Block a user