mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-19 16:26:36 +00:00
Merge pull request #46 from useblacksmith/vm-notification
src: add petname and vmID to notification
This commit is contained in:
commit
d197edcd29
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -382,7 +382,9 @@ async function reportBuilderCreationFailed(stickydiskKey: string) {
|
|||||||
stickydisk_key: stickydiskKey,
|
stickydisk_key: stickydiskKey,
|
||||||
repo_name: process.env.GITHUB_REPO_NAME || '',
|
repo_name: process.env.GITHUB_REPO_NAME || '',
|
||||||
region: process.env.BLACKSMITH_REGION || 'eu-central',
|
region: process.env.BLACKSMITH_REGION || 'eu-central',
|
||||||
arch: process.env.PETNAME?.includes('arm') ? 'arm64' : 'amd64'
|
arch: process.env.PETNAME?.includes('arm') ? 'arm64' : 'amd64',
|
||||||
|
vm_id: process.env.VM_ID || '',
|
||||||
|
petname: process.env.PETNAME || ''
|
||||||
};
|
};
|
||||||
const retryCondition = (error: AxiosError) => {
|
const retryCondition = (error: AxiosError) => {
|
||||||
return error.response?.status ? error.response.status > 500 : false;
|
return error.response?.status ? error.response.status > 500 : false;
|
||||||
|
Loading…
Reference in New Issue
Block a user