Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI Docker Image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSI Ansible
CI Docker Image
Commits
c783747d
Commit
c783747d
authored
Nov 30, 2022
by
Adrian K.
Browse files
Options
Downloads
Patches
Plain Diff
Move to creator-ee
parent
d651fc54
No related branches found
No related tags found
No related merge requests found
Pipeline
#118711
failed
Nov 30, 2022
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+33
-9
33 additions, 9 deletions
.gitlab-ci.yml
.gitmodules
+3
-0
3 additions, 0 deletions
.gitmodules
creator-ee
+1
-0
1 addition, 0 deletions
creator-ee
with
37 additions
and
9 deletions
.gitlab-ci.yml
+
33
−
9
View file @
c783747d
...
@@ -11,11 +11,35 @@ services:
...
@@ -11,11 +11,35 @@ services:
build
:
build
:
stage
:
build
stage
:
build
script
:
script
:
# Install requirements for creator-ee scripts
-
apk add curl git bash py3-pip podman
# download creator-ee submodule, as it doesn't get fetched automatically
-
git submodule update --init --recursive
# install taskfile, called using "task"
-
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
# Extend PATH to contain task and ansible (installed later)
-
export PATH=$PATH:$(pwd)/bin:/root/.local/bin
# no idea, might be required, was in the repository earlier as well...
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1
--cache-from $CI_REGISTRY_IMAGE:latest
# move to the right directory to prepare executing buildscript
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
-
cd creator-ee
--tag $CI_REGISTRY_IMAGE:latest
"."
# https://github.com/webdevops/Dockerfile/issues/266
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
-
echo 'Ansible refuses to read from a world-writeable folder, hence' && chmod -v 700 $(pwd)
-
docker push $CI_REGISTRY_IMAGE:latest
# install ansible to get ansible-galaxy
-
python3 -m pip install --user ansible
# finally start building the CI image
-
task build
#- docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1
#--cache-from $CI_REGISTRY_IMAGE:latest
#--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
#--tag $CI_REGISTRY_IMAGE:latest
#"."
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
# - docker push $CI_REGISTRY_IMAGE:latest
This diff is collapsed.
Click to expand it.
.gitmodules
0 → 100644
+
3
−
0
View file @
c783747d
[submodule "creator-ee"]
path = creator-ee
url = https://github.com/ansible/creator-ee/
This diff is collapsed.
Click to expand it.
creator-ee
@
10f32189
Subproject commit 10f321890edda4e722c46c0b6f68af9d3debf25f
This diff is collapsed.
Click to expand it.
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