Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
semantic-release
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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
GitHub Mirror
go-semantic-release
semantic-release
Commits
30ecd1c7
Commit
30ecd1c7
authored
Apr 26, 2020
by
Christoph Witzko
Browse files
Options
Downloads
Patches
Plain Diff
feat: push docker image to gitlab registry
parent
31ae095c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/ci.yml
+2
-0
2 additions, 0 deletions
.github/workflows/ci.yml
scripts/release
+10
-1
10 additions, 1 deletion
scripts/release
with
12 additions
and
1 deletion
.github/workflows/ci.yml
+
2
−
0
View file @
30ecd1c7
...
...
@@ -70,4 +70,6 @@ jobs:
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN
:
${{ secrets.NPM_TOKEN }}
GITLAB_USER
:
${{ secrets.GITLAB_USER }}
GITLAB_TOKEN
:
${{ secrets.GITLAB_TOKEN }}
run
:
./scripts/release || exit
0
This diff is collapsed.
Click to expand it.
scripts/release
+
10
−
1
View file @
30ecd1c7
...
...
@@ -14,14 +14,23 @@ ghr $(cat .ghr) bin/
# docker build
export
IMAGE_NAME
=
"docker.pkg.github.com/go-semantic-release/semantic-release/semantic-release"
export
IMAGE_NAME_VERSION
=
"
$IMAGE_NAME
:
$VERSION
"
export
GL_IMAGE_NAME
=
"registry.gitlab.com/go-semantic-release/semantic-release"
export
GL_IMAGE_NAME_VERSION
=
"
$GL_IMAGE_NAME
:
$VERSION
"
docker build
--build-arg
VERSION
=
$VERSION
-t
$IMAGE_NAME_VERSION
.
docker tag
$IMAGE_NAME_VERSION
$IMAGE_NAME
docker tag
$IMAGE_NAME_VERSION
$GL_IMAGE_NAME
docker tag
$IMAGE_NAME_VERSION
$GL_IMAGE_NAME_VERSION
# push to
docker hub
# push to
GitHub Docker Registry
docker login docker.pkg.github.com
-u
$GITHUB_ACTOR
-p
$GITHUB_TOKEN
docker push
$IMAGE_NAME_VERSION
docker push
$IMAGE_NAME
# push to GitLab Docker Registry
docker login registry.gitlab.com
-u
$GITLAB_USER
-p
$GITLAB_TOKEN
docker push
$GL_IMAGE_NAME_VERSION
docker push
$GL_IMAGE_NAME
# publish npm package
cd
./npm-package
&&
npm publish
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