Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clarin-dspace
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
Container registry
Model registry
Operate
Environments
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
commul
docker
clarin-dspace
Commits
ec98006c
Verified
Commit
ec98006c
authored
4 years ago
by
egon w. stemle
Browse files
Options
Downloads
Patches
Plain Diff
earthly-fy release.sh
parent
3ba42a39
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
dockerfiles/release.sh
+3
-21
3 additions, 21 deletions
dockerfiles/release.sh
with
3 additions
and
21 deletions
dockerfiles/release.sh
+
3
−
21
View file @
ec98006c
#!/bin/bash
set
-e
VERSION
=
${
1
:-
latest
}
TYPE
=
${
2
:-
staging
}
#export DOCKER_BUILDKIT=1
echo
"
$VERSION
"
>
.release
docker build
\
--build-arg
LABEL_VERSION
=
"
$VERSION
"
\
--build-arg
LABEL_BUILD_DATE
=
"
$(
date
-R
)
"
\
-t
"gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/
$TYPE
/dspace:
$VERSION
"
.
-f
Dockerfile.dspace
docker build
\
--build-arg
LABEL_VERSION
=
"
$VERSION
"
\
--build-arg
LABEL_BUILD_DATE
=
"
$(
date
-R
)
"
\
-t
"gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/
$TYPE
/nginx:
$VERSION
"
.
-f
Dockerfile.nginx
docker build
\
--build-arg
LABEL_VERSION
=
"
$VERSION
"
\
--build-arg
LABEL_BUILD_DATE
=
"
$(
date
-R
)
"
\
-t
"gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/
$TYPE
/postgres:
$VERSION
"
.
-f
Dockerfile.postgres
docker push
"gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/
$TYPE
/dspace:
$VERSION
"
docker push
"gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/
$TYPE
/nginx:
$VERSION
"
docker push
"gitlab.inf.unibz.it:4567/commul/docker/clarin-dspace/
$TYPE
/postgres:
$VERSION
"
ERCC_TAG
=
"
$(
git describe
--tags
--abbrev
=
0
$(
git rev-list
--tags
--max-count
=
1
))
"
VERSION
=
${
ERCC_TAG
:-
latest
}
earthly
--push
+docker
echo sed
../kubernetes/
*
-deployment
.yaml
-e
\"
's#\(.*image: gitlab.inf.unibz.it:4567/.*:\).*#\1'
"
${
VERSION
}
#"
\"
This diff is collapsed.
Click to expand it.
egon w. stemle
@egon.stemle
mentioned in commit
34c82519
·
4 years ago
mentioned in commit
34c82519
mentioned in commit 34c825191466a688aa651cd5c5a9f2b1271ffa04
Toggle commit list
egon w. stemle
@egon.stemle
mentioned in commit
3d10ef28
·
4 years ago
mentioned in commit
3d10ef28
mentioned in commit 3d10ef288ed3d8c6205d958613f8dce66f33b508
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