120 lines
3.9 KiB
JavaScript
120 lines
3.9 KiB
JavaScript
export const mockGraphqlRunnerPlatforms = {
|
|
data: {
|
|
runnerPlatforms: {
|
|
nodes: [
|
|
{
|
|
name: 'linux',
|
|
humanReadableName: 'Linux',
|
|
architectures: {
|
|
nodes: [
|
|
{
|
|
name: 'amd64',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
{
|
|
name: '386',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
{
|
|
name: 'arm',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-arm',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
{
|
|
name: 'arm64',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-arm64',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
],
|
|
__typename: 'RunnerArchitectureConnection',
|
|
},
|
|
__typename: 'RunnerPlatform',
|
|
},
|
|
{
|
|
name: 'osx',
|
|
humanReadableName: 'macOS',
|
|
architectures: {
|
|
nodes: [
|
|
{
|
|
name: 'amd64',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
],
|
|
__typename: 'RunnerArchitectureConnection',
|
|
},
|
|
__typename: 'RunnerPlatform',
|
|
},
|
|
{
|
|
name: 'windows',
|
|
humanReadableName: 'Windows',
|
|
architectures: {
|
|
nodes: [
|
|
{
|
|
name: 'amd64',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-amd64.exe',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
{
|
|
name: '386',
|
|
downloadLocation:
|
|
'https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-386.exe',
|
|
__typename: 'RunnerArchitecture',
|
|
},
|
|
],
|
|
__typename: 'RunnerArchitectureConnection',
|
|
},
|
|
__typename: 'RunnerPlatform',
|
|
},
|
|
{
|
|
name: 'docker',
|
|
humanReadableName: 'Docker',
|
|
architectures: null,
|
|
__typename: 'RunnerPlatform',
|
|
},
|
|
{
|
|
name: 'kubernetes',
|
|
humanReadableName: 'Kubernetes',
|
|
architectures: null,
|
|
__typename: 'RunnerPlatform',
|
|
},
|
|
],
|
|
__typename: 'RunnerPlatformConnection',
|
|
},
|
|
project: { id: 'gid://gitlab/Project/1', __typename: 'Project' },
|
|
group: null,
|
|
},
|
|
};
|
|
|
|
export const mockGraphqlInstructions = {
|
|
data: {
|
|
runnerSetup: {
|
|
installInstructions:
|
|
'# Install and run as service\nsudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner\nsudo gitlab-runner start',
|
|
registerInstructions:
|
|
'sudo gitlab-runner register --url http://gdk.test:3000/ --registration-token $REGISTRATION_TOKEN',
|
|
__typename: 'RunnerSetup',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const mockGraphqlInstructionsWindows = {
|
|
data: {
|
|
runnerSetup: {
|
|
installInstructions:
|
|
'# Windows runner, then run\n.gitlab-runner.exe install\n.gitlab-runner.exe start',
|
|
registerInstructions:
|
|
'./gitlab-runner.exe register --url http://gdk.test:3000/ --registration-token $REGISTRATION_TOKEN',
|
|
__typename: 'RunnerSetup',
|
|
},
|
|
},
|
|
};
|