We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38ca93 commit bd34dd4Copy full SHA for bd34dd4
1 file changed
dev/deploy-to-container/cli.js
@@ -158,12 +158,11 @@ async function main () {
158
159
// Get shared test docker volume
160
console.info('Querying shared test docker volume...')
161
- const testVolume = await dock.getVolume(`dt-test-${branch}`)
162
- console.info(testVolume)
163
- if (testVolume) {
164
- console.info('Existing shared test docker volume found. Deleting first...')
+ try {
+ const testVolume = await dock.getVolume(`dt-test-${branch}`)
+ console.info('Attempting to delete any existing shared test docker volume...')
165
await testVolume.remove({ force: true })
166
- }
+ } catch (err) {}
167
console.info('Creating new shared test docker volume...')
168
await dock.createVolume({
169
Name: `dt-test-${branch}`
0 commit comments