Skip to content

Commit

Permalink
Do not pull from the github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Nov 15, 2022
1 parent 47a9810 commit 6e4a408
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
key: cypress-context-${{ github.run_id }}
path: /home/runner/work/viewer

- name: Pull server image
run: docker pull ghcr.io/nextcloud/continuous-integration-shallow-server
# - name: Pull server image
# run: docker pull ghcr.io/nextcloud/continuous-integration-shallow-server

- name: Run E2E cypress tests
uses: cypress-io/github-action@v4
Expand Down
15 changes: 13 additions & 2 deletions cypress/dockerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,19 @@ const SERVER_IMAGE = 'ghcr.io/nextcloud/continuous-integration-shallow-server'
export const startNextcloud = async function (branch: string = 'master'): Promise<any> {
try {
// Pulling images
console.log('Pulling images...')
await docker.pull(SERVER_IMAGE)
console.log('Pulling images... ⏳')
await new Promise((resolve, reject): any => docker.pull(SERVER_IMAGE, (err, stream) => {
// https://github.com/apocas/dockerode/issues/357
docker.modem.followProgress(stream, onFinished)
function onFinished(err, output) {
if (!err) {
resolve(true)
return
}
reject(err)
}
}))
console.log(`└─ Done`)

// Getting latest image
console.log('\nChecking running containers... 🔍')
Expand Down

0 comments on commit 6e4a408

Please sign in to comment.