Try to fix docker api github token

Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
pull/451/head
Flavius Lacatusu 2020-09-24 08:58:25 +02:00
parent fa8f58618d
commit b881421fd1
No known key found for this signature in database
GPG Key ID: AB9AB3E390E38ABD
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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