Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
f1ba5b51
Commit
f1ba5b51
authored
4 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
release script template fixes
parent
fbb46416
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/release/src/release/draft_release.clj
+4
-1
4 additions, 1 deletion
bin/release/src/release/draft_release.clj
bin/release/src/release/elastic_beanstalk.clj
+10
-7
10 additions, 7 deletions
bin/release/src/release/elastic_beanstalk.clj
with
14 additions
and
8 deletions
bin/release/src/release/draft_release.clj
+
4
−
1
View file @
f1ba5b51
...
...
@@ -2,6 +2,7 @@
(
:require
[
cheshire.core
:as
json
]
[
clj-http.client
:as
http
]
[
clojure.core.cache
:as
cache
]
[
clojure.java.io
:as
io
]
[
metabuild-common.core
:as
u
]
[
release.common
:as
c
]
[
release.common
...
...
@@ -14,7 +15,9 @@
(
stencil.loader/set-cache
(
cache/ttl-cache-factory
{}
:ttl
0
))
(
def
^
:private
release-template-filename
(
u/assert-file-exists
(
u/filename
c/root-directory
"bin"
"release"
"src"
"release"
"draft_release"
"release-template.md"
)))
"release/draft_release/release-template.md"
)
(
u/assert-file-exists
(
.getPath
(
io/resource
release-template-filename
)))
(
defn-
generate-draft-changelog
[]
(
u/step
"Generate draft changelog"
...
...
This diff is collapsed.
Click to expand it.
bin/release/src/release/elastic_beanstalk.clj
+
10
−
7
View file @
f1ba5b51
...
...
@@ -2,6 +2,7 @@
"Code related to building and publishing Elastic Beanstalk artifacts."
(
:require
[
cheshire.core
:as
json
]
[
clojure.core.cache
:as
cache
]
[
clojure.java.io
:as
io
]
[
metabuild-common.core
:as
u
]
[
release.common
:as
c
]
[
release.common
...
...
@@ -82,16 +83,18 @@
(
u/assert-file-exists
archive-path
))))
(
def
^
:private
launch-template-filename
(
u/assert-file-exists
(
u/filename
c/root-directory
"bin"
"release"
"src"
"release"
"elastic_beanstalk"
"launch-aws-eb.html.template"
)))
"release/elastic_beanstalk/launch-aws-eb.html.template"
)
(
u/assert-file-exists
(
.getPath
(
io/resource
launch-template-filename
)))
(
defn-
create-html-file!
[]
(
u/step
(
format
"Create launch-aws-eb.html for Docker image %s"
(
c/docker-tag
))
(
u/delete-file-if-exists!
html-file-path
)
(
spit
html-file-path
(
stencil/render-file
launch-template-filename
{
:url
(
java.net.URLEncoder/encode
(
c/artifact-download-url
"metabase-aws-eb.zip"
)
"UTF-8"
)}))
(
u/assert-file-exists
html-file-path
)))
(
u/delete-file-if-exists!
html-file-path
)
(
spit
html-file-path
(
stencil/render-file
launch-template-filename
{
:url
(
java.net.URLEncoder/encode
(
c/artifact-download-url
"metabase-aws-eb.zip"
)
"UTF-8"
)}))
(
u/assert-file-exists
html-file-path
)))
(
defn-
upload-artifacts!
[]
(
u/step
"Upload Elastic Beanstalk artifacts"
...
...
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