Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flaky_tests_scraper
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
flaky_tests_scraper
Commits
620d1fb4
Commit
620d1fb4
authored
1 month ago
by
znerol
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3521317
: Setup GitLab CI pipeline to build and publish container image
parent
092fc66f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab-ci.yml
+28
-0
28 additions, 0 deletions
gitlab-ci.yml
with
28 additions
and
0 deletions
gitlab-ci.yml
0 → 100644
+
28
−
0
View file @
620d1fb4
workflow
:
rules
:
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
stages
:
-
build
container-image
:
interruptible
:
true
stage
:
build
image
:
quay.io/buildah/stable
variables
:
# Use vfs with buildah. Docker offers overlayfs as a default, but buildah
# cannot stack overlayfs on top of another overlayfs filesystem.
STORAGE_DRIVER
:
vfs
# Write all image metadata in the docker format, not the standard OCI format.
# Newer versions of docker can handle the OCI format, but older versions, like
# the one shipped with Fedora 30, cannot handle the format.
BUILDAH_FORMAT
:
docker
# You may need this workaround for some errors: https://stackoverflow.com/a/70438141/1233435
BUILDAH_ISOLATION
:
chroot
rules
:
-
when
:
always
script
:
-
echo "${DOCKER_HUB_PASSWORD}" | buildah login -u "${DOCKER_HUB_USER}" --password-stdin docker.io
-
buildah build -t docker.io/drflaky/flaky-tests-scraper:latest .
-
buildah push docker.io/drflaky/flaky-tests-scraper:latest
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