From b881421fd10dc6786033f37a19b36061761dbbbf Mon Sep 17 00:00:00 2001 From: Flavius Lacatusu Date: Thu, 24 Sep 2020 08:58:25 +0200 Subject: [PATCH] Try to fix docker api github token Signed-off-by: Flavius Lacatusu --- .github/workflows/che-nightly.yaml | 4 +++- .github/workflows/e2e.yaml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/che-nightly.yaml b/.github/workflows/che-nightly.yaml index fcd3a3cfeb..0006133a59 100644 --- a/.github/workflows/che-nightly.yaml +++ b/.github/workflows/che-nightly.yaml @@ -21,10 +21,12 @@ jobs: - name: Build operator image run: | export OPERATOR_IMAGE=quay.io/eclipse/che-operator:test + # coreutils provides a readlink that supports `-f` - brew install docker-machine docker + brew install coreutils docker docker-machine docker-machine --github-api-token="${{ secrets.GITHUB_TOKEN }}" create --driver virtualbox default eval "$(docker-machine env default)" + export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" docker build -t "${OPERATOR_IMAGE}" -f Dockerfile . && docker save "${OPERATOR_IMAGE}" > operator.tar diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index d6d961e94f..d7c9812390 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -19,10 +19,13 @@ jobs: - name: Build operator image run: | export OPERATOR_IMAGE=quay.io/eclipse/che-operator:test + # coreutils provides a readlink that supports `-f` - brew install docker-machine docker + brew install coreutils docker docker-machine docker-machine --github-api-token="${{ secrets.GITHUB_TOKEN }}" create --driver virtualbox default eval "$(docker-machine env default)" + export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" + docker build -t "${OPERATOR_IMAGE}" -f Dockerfile . && docker save "${OPERATOR_IMAGE}" > operator.tar sed -i'.bak' -e "s|quay.io\/eclipse\/che-operator:nightly|$OPERATOR_IMAGE|" deploy/operator-local.yaml