UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bigbang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Big Bang
bigbang
Commits
c846a103
Commit
c846a103
authored
4 years ago
by
Zachariah Dzielinski
Browse files
Options
Downloads
Patches
Plain Diff
ci: fixed release process rules
parent
416b5100
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!129
BB-1081 - Modify Umbrella workflow rules to restrict pipelines for merge requests / general clean up of workflow rules
Pipeline
#129206
passed
4 years ago
Stage: .pre
Stage: smoke tests
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-14
4 additions, 14 deletions
.gitlab-ci.yml
with
4 additions
and
14 deletions
.gitlab-ci.yml
+
4
−
14
View file @
c846a103
...
...
@@ -282,40 +282,31 @@ package:
stage
:
package
image
:
registry.dsop.io/platform-one/big-bang/umbrella/synker:0.0.1
rules
:
#
# skip
job for manual tag events
#
- if: $CI_COMMIT_TAG
#
run
job for manual tag events
-
if
:
$CI_COMMIT_TAG
# when: never
# # run job on commits to default branch
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
when
:
never
# TODO - Job should not run yet
dependencies
:
-
clean install
before_script
:
# Set up auth
-
mkdir -p /root/.docker
-
echo $DOCKER_AUTH_CONFIG > /root/.docker/config.json
script
:
-
cp ./scripts/package/synker.yaml ./synker.yaml
# Populate images list in synker config
# NOTE: This is stupid and hacky, use yq or something better to do this
-
cat images.txt | sed -e 's/^/ - /' >> synker.yaml
-
synker pull -b=1
# Tar up synker as well?
-
cp /usr/local/bin/synker synker.yaml /var/lib/registry/
-
tar -C /var/lib/registry -czvf $IMAGE_PKG .
-
tar -czvf $IMAGE_PKG /var/lib/registry
# Package dependent repos
-
./scripts/package/gits.sh
-
tar -czf $REPOS_PKG repos/
# Prep release
-
mkdir -p release
-
mv $IMAGE_LIST $IMAGE_PKG $REPOS_PKG release/
# Publish packages to s3 release
-
aws s3 sync --quiet release/ s3://umbrella-bigbang-releases/umbrella/${CI_COMMIT_TAG}
after_script
:
[]
...
...
@@ -324,12 +315,11 @@ release:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
#
# skip
job for manual tag events
#
- if: $CI_COMMIT_TAG
#
run
job for manual tag events
-
if
:
$CI_COMMIT_TAG
# when: never
# # run job on commits to default branch
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
when
:
never
# TODO - Job should not run yet
variables
:
RELEASE_ENDPOINT
:
https://${RELEASE_BUCKET}.s3-${AWS_DEFAULT_REGION}.amazonaws.com/umbrella/${CI_COMMIT_TAG}
script
:
...
...
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