Skip to content

Commit 5e2bfe9

Browse files
authored
Add docker image build and push workflow (#118)
Signed-off-by: Angelica Ochoa <15623749+ao508@users.noreply.github.com>
1 parent a2d324c commit 5e2bfe9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build and Publish image to Docker Hub
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.RELEASE"
7+
8+
jobs:
9+
publish_images:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v4
14+
- name: build image
15+
run: docker build . --file Dockerfile --tag cmometadb/label-generator:${{ github.ref_name }}
16+
- name: push image
17+
run: |
18+
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
19+
docker push cmometadb/label-generator:${{ github.ref_name }}
20+

0 commit comments

Comments
 (0)