Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Proton
sniper
sdk
Commits
fa232343
Verified
Commit
fa232343
authored
4 years ago
by
Rémi Bernon
Browse files
Options
Downloads
Patches
Plain Diff
Build docker images from Proton github repository.
parent
d8828762
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+222
-14
222 additions, 14 deletions
.gitlab-ci.yml
with
222 additions
and
14 deletions
.gitlab-ci.yml
+
222
−
14
View file @
fa232343
variables
:
variables
:
BASE_IMAGE
:
registry.gitlab.steamos.cloud/steamrt/soldier/sdk
STEAMRT_VERSION
:
0.20201210.0
PROTON_BRANCH
:
proton_5.13
default
:
image
:
"
${BASE_IMAGE}"
stages
:
-
checkout
build
:
-
build-base
tags
:
-
binutils
-
docker
-
mingw
-
linux
-
gcc
stage
:
build
-
proton
script
:
|
set -eu
set -o pipefail
checkout
:
# TODO: Put something useful here
tags
:
-
docker
-
linux
image
:
registry.gitlab.steamos.cloud/steamrt/soldier/sdk
stage
:
checkout
script
:
-
git clone -b $PROTON_BRANCH https://github.com/ValveSoftware/Proton proton
-
make -C proton/docker DOCKER=true STEAMRT_VERSION=$STEAMRT_VERSION | grep 'true build' > commands
-
grep 'f build-base-i686' commands > build-base-i686.sh
-
grep 'f build-base-x86_64' commands > build-base-x86_64.sh
-
grep 'f binutils-i686-w64' commands > binutils-i686-w64.sh
-
grep 'f binutils-i686-linux' commands > binutils-i686-linux.sh
-
grep 'f binutils-x86_64-w64' commands > binutils-x86_64-w64.sh
-
grep 'f binutils-x86_64-linux' commands > binutils-x86_64-linux.sh
-
grep 'f mingw-.*-i686' commands > mingw-i686.sh
-
grep 'f mingw-.*-x86_64' commands > mingw-x86_64.sh
-
grep 'f gcc-i686-w64' commands > gcc-i686-w64.sh
-
grep 'f gcc-i686-linux' commands > gcc-i686-linux.sh
-
grep 'f gcc-x86_64-w64' commands > gcc-x86_64-w64.sh
-
grep 'f gcc-x86_64-linux' commands > gcc-x86_64-linux.sh
-
grep 'f proton' commands > proton.sh
-
sed -re 's@true build@rm /build -rf; mkdir -p /build; /kaniko/executor --reproducible --cleanup@g' -i *.sh
-
sed -re 's@-f @--dockerfile @g' -i *.sh
-
sed -re 's@-t @--destination @g' -i *.sh
-
sed -re 's@--cache-from=[^ ]+ @--cache @g' -i *.sh
-
sed -re 's@build$@--context /build@g' -i *.sh
-
sed -re 's@--reproducible @@g' -i proton.sh
-
mv proton/docker/*.Dockerfile ./
artifacts
:
paths
:
-
"
*.Dockerfile"
-
"
*.sh"
build-base-i686
:
tags
:
-
docker
-
linux
stage
:
build-base
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux build-base-i686.sh
build-base-x86_64
:
tags
:
-
docker
-
linux
stage
:
build-base
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux build-base-x86_64.sh
binutils-i686-w64
:
tags
:
-
docker
-
linux
stage
:
binutils
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux binutils-i686-w64.sh
binutils-i686-linux
:
tags
:
-
docker
-
linux
stage
:
binutils
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux binutils-i686-linux.sh
binutils-x86_64-w64
:
tags
:
-
docker
-
linux
stage
:
binutils
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux binutils-x86_64-w64.sh
binutils-x86_64-linux
:
tags
:
-
docker
-
linux
stage
:
binutils
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux binutils-x86_64-linux.sh
mingw-i686
:
tags
:
-
docker
-
linux
stage
:
mingw
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux mingw-i686.sh
mingw-x86_64
:
tags
:
-
docker
-
linux
stage
:
mingw
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux mingw-x86_64.sh
gcc-i686-w64
:
tags
:
-
docker
-
linux
stage
:
gcc
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux gcc-i686-w64.sh
gcc-i686-linux
:
tags
:
-
docker
-
linux
stage
:
gcc
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux gcc-i686-linux.sh
gcc-x86_64-w64
:
tags
:
-
docker
-
linux
stage
:
gcc
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux gcc-x86_64-w64.sh
gcc-x86_64-linux
:
tags
:
-
docker
-
linux
stage
:
gcc
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux gcc-x86_64-linux.sh
proton
:
tags
:
-
docker
-
linux
stage
:
proton
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
sh -eux proton.sh
This diff is collapsed.
Click to expand it.
Simon McVittie
@smcv
mentioned in commit
b95fce61
·
2 years ago
mentioned in commit
b95fce61
mentioned in commit b95fce61a02e6a893b804f2eac985fef3f0f399c
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment