Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
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
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
hdacloud
dex
Commits
0b067af8
Unverified
Commit
0b067af8
authored
5 years ago
by
Mark Sagi-Kazar
Browse files
Options
Downloads
Patches
Plain Diff
Add docker build and push to docker hub
parent
eef8c0a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/ci.yml
+26
-0
26 additions, 0 deletions
.github/workflows/ci.yml
.github/workflows/release.yml
+24
-0
24 additions, 0 deletions
.github/workflows/release.yml
with
50 additions
and
0 deletions
.github/workflows/ci.yml
+
26
−
0
View file @
0b067af8
...
@@ -81,3 +81,29 @@ jobs:
...
@@ -81,3 +81,29 @@ jobs:
# Ensure proto generation doesn't depend on external packages.
# Ensure proto generation doesn't depend on external packages.
-
name
:
Verify proto
-
name
:
Verify proto
run
:
make verify-proto
run
:
make verify-proto
docker
:
name
:
Docker
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v2
-
name
:
Determine tag
uses
:
haya14busa/action-cond@v1
id
:
imagetag
with
:
cond
:
${{ github.event_name == 'pull_request' }}
if_true
:
${{ github.sha }}
if_false
:
"
master"
-
name
:
Build
uses
:
docker/build-push-action@v1
with
:
username
:
${{ secrets.DOCKER_USERNAME }}
password
:
${{ secrets.DOCKER_PASSWORD }}
repository
:
dexidp/dex
tags
:
${{ steps.imagetag.outputs.value }}
add_git_labels
:
true
push
:
${{ github.event_name == 'push' }}
This diff is collapsed.
Click to expand it.
.github/workflows/release.yml
0 → 100644
+
24
−
0
View file @
0b067af8
name
:
Release
on
:
push
:
tags
:
-
"
v[0-9]+.[0-9]+.[0-9]+"
jobs
:
docker
:
name
:
Docker
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v2
-
name
:
Build and push image
uses
:
docker/build-push-action@v1
with
:
username
:
${{ secrets.DOCKER_USERNAME }}
password
:
${{ secrets.DOCKER_PASSWORD }}
repository
:
dexidp/dex
tags
:
latest
tag_with_ref
:
true
add_git_labels
:
true
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