Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
user-service
Commits
fa438c01
Commit
fa438c01
authored
3 years ago
by
ChakshuGautam
Browse files
Options
Download
Patches
Plain Diff
ci(docker push): add docker tags based on release tags meta
parent
f4610f17
master
v2.4.4
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.9
v2.3.8
v2.3.7
v2.3.6
v2.3.5
v2.3.4
v2.3.3.1
v2.3.3
v2.3.2
v2.3.1
v2.3.0
v2.2.0
v2.1.7
v2.1.6
v2.1.5
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.0
v1.1.0
v1.1
v1.0.6
v1.0.5
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/docker-push.yml
+23
-7
.github/workflows/docker-push.yml
with
23 additions
and
7 deletions
+23
-7
.github/workflows/docker-push.yml
+
23
−
7
View file @
fa438c01
...
...
@@ -3,14 +3,13 @@ name: Docker Push
on
:
push
:
tags
:
-
"
v*.*.*
"
-
'
v*.*.*
'
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Check Out Repo
-
name
:
Check Out Repo
uses
:
actions/checkout@v2
-
name
:
Login to Docker Hub
...
...
@@ -18,18 +17,35 @@ jobs:
with
:
username
:
${{ secrets.DOCKER_HUB_USERNAME }}
password
:
${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name
:
Get Docker meta
id
:
meta
uses
:
docker/metadata-action@v3
with
:
# list of Docker images to use as base name for tags
images
:
|
${{ secrets.DOCKER_HUB_USERNAME }}/esamwad-user-service
# generate Docker tags based on the following events/attributes
tags
:
|
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name
:
Set up Docker Buildx
id
:
buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Build and push
id
:
docker_build
uses
:
docker/build-push-action@v2
with
:
context
:
.
push
:
true
tags
:
${{ s
ecrets.DOCKER_HUB_USERNAME }}/esamwad-user-service:latest
tags
:
${{ s
teps.meta.outputs.tags }}
-
name
:
Image digest
run
:
echo ${{ steps.docker_build.outputs.digest }}
\ No newline at end of file
run
:
echo ${{ steps.docker_build.outputs.digest }}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets