Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server-monitor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
server-monitor
Commits
7903af8b
There was an error fetching the commit references. Please try again later.
Verified
Commit
7903af8b
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
auto build
parent
901c09d4
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
buildspec.yaml
+26
-0
26 additions, 0 deletions
buildspec.yaml
with
26 additions
and
0 deletions
buildspec.yaml
0 → 100644
+
26
−
0
View file @
7903af8b
version
:
0.2
env
:
variables
:
IMAGE_TAG
:
"
latest"
IMAGE_REPO_NAME
:
"
recolic/rserver-status"
parameter-store
:
DOCKER_PSWD
:
"
recolic_docker_pswd"
phases
:
pre_build
:
commands
:
-
echo Logging in to Docker Hub...
-
docker login -u recolic -p "$DOCKER_PSWD"
# Type the command to log in to your Docker Hub account here.
build
:
commands
:
-
echo Build started on `date`
-
echo Building the Docker image...
-
docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG .
-
docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $IMAGE_REPO_NAME:$IMAGE_TAG
post_build
:
commands
:
-
echo Build completed on `date`
-
echo Pushing the Docker image...
-
docker push $IMAGE_REPO_NAME:$IMAGE_TAG
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