Skip to content
Snippets Groups Projects
Commit 48371aa5 authored by Giovanni Vindiola's avatar Giovanni Vindiola :speech_balloon:
Browse files

Trying to Push CesiumForUnreal and ArcGISSDK Plugins to S3. Updated...

Trying to Push CesiumForUnreal and ArcGISSDK Plugins to S3. Updated gitlab-ci.yml to test building, and uploading pixelstreaming and linux client
parent bfcc7346
No related branches found
No related tags found
No related merge requests found
image: gcr.io/kaniko-project/executor:debug
stages:
- build-and-push-pixelstreaming
# - build-and-push-server
# - upload
- build-and-push-ps-ds
- pull-linux-build
- upload-linux-build
# - release
variables:
......@@ -14,53 +14,41 @@ variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_SHA}"
build-and-push-job-pixelstreaming:
stage: build-and-push-pixelstreaming
stage: build-and-push-ps-ds
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile "$CI_PROJECT_DIR/Docker/ARNocAlphaLinuxPixelStreamingClient" --build-arg access_key_id=${access_key_id} --build-arg secret_access_key=${secret_access_key} --destination "${CI_REGISTRY_IMAGE}/arnolinuxpixelstreamingclient:${CI_COMMIT_SHA}" --destination "${CI_REGISTRY_IMAGE}/arnolinuxpixelstreamingclient:latest"
- /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile "$CI_PROJECT_DIR/Docker/ARNocAlphaLinuxPixelStreamingClient" --destination "${CI_REGISTRY_IMAGE}/arnolinuxpixelstreamingclient:${CI_COMMIT_SHA}" --destination "${CI_REGISTRY_IMAGE}/arnolinuxpixelstreamingclient:latest"
#build-and-push-job-server:
# stage: build-and-push-server
# stage: build-and-push-ps-ds
# script:
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile "$CI_PROJECT_DIR/Docker/ARNocAlphaLinuxServer" --build-arg access_key_id=${access_key_id} --build-arg secret_access_key=${secret_access_key} --destination "${CI_REGISTRY_IMAGE}/arnolinuxserver:{CI_COMMIT_SHA}" --destination "${CI_REGISTRY_IMAGE}/arnolinuxserver:latest"
#build-and-push-job:
# stage: build-and-push
# except:
# changes:
# - "**/*.yaml"
# - "README.md"
# script:
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile "$CI_PROJECT_DIR/Dockerfile.LinuxRelease" --destination $CI_REGISTRY_IMAGE:arnoc-${CI_COMMIT_SHA:0:8} --destination $CI_REGISTRY_IMAGE:arnoc-latest
# only:
# - main
# - /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile "$CI_PROJECT_DIR/Docker/ARNocAlphaLinuxServer" --destination "${CI_REGISTRY_IMAGE}/arnolinuxserver:{CI_COMMIT_SHA}" --destination "${CI_REGISTRY_IMAGE}/arnolinuxserver:latest"
# pull-job:
# stage: pull
# image: $CI_REGISTRY_IMAGE:arnoc-latest
# script:
# - echo "Saving Project as artifact to upload"
# only:
# - main
# artifacts:
# expire_in: 1 hrs
# paths:
# - /home/ue4/
#
# upload-and-tag-job:
# stage: upload
# image: curlimages/curl:latest
# script:
# - tar -czvf "/home/ue4/${LINUX_AMD64_BINARY}.tar.gz" /home/ue4/project
# - |
# curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "/home/ue4/${LINUX_AMD64_BINARY}.tar.gz" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}.tar.gz"
# - |
# curl --request POST --header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/tags?tag_name=Release-${CI_COMMIT_SHORT_SHA}&ref=main"
# only:
# - main
#
pull-job:
stage: pull-linux-build
image: ${CI_REGISTRY_IMAGE}/arnolinuxpixelstreamingclient:latest
script:
- echo "Saving Project as artifact to upload"
only:
- main
artifacts:
expire_in: 1 hrs
paths:
- /home/ue4/
upload-and-tag-job:
stage: upload-linux-build
image: curlimages/curl:latest
script:
- tar -czvf "/home/ue4/${LINUX_AMD64_BINARY}.tar.gz" /home/ue4/project
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "/home/ue4/${LINUX_AMD64_BINARY}.tar.gz" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}.tar.gz"
- |
curl --request POST --header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/repository/tags?tag_name=Release-${CI_COMMIT_SHORT_SHA}&ref=main"
only:
- main
# release-job:
# stage: release
# image: registry.gitlab.com/gitlab-org/release-cli:latest
......@@ -70,4 +58,3 @@ build-and-push-job-pixelstreaming:
# --assets-link "{\"name\":\"${LINUX_AMD64_BINARY}.tar.gz\",\"url\":\"${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}.tar.gz\"}"
# only:
# - main
#
......@@ -12,6 +12,9 @@
- Plugins/EpicOnlineSubsystem/**
- Plugins/Reztly/**
+ Plugins/CesiumForUnreal/**
+ Plugins/ArcGISMapsSDK/**
# Files to be synced with RClone instead of Git
# Large Files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment