Skip to content

Commit d1d82e6

Browse files
authored
Merge pull request #41 from LaithSaq/add-docker-publish-workflow
Add docker publish workflow
2 parents 9062392 + acc4f51 commit d1d82e6

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/ci-workflow.yml renamed to .github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI with dependencies from helm chart"
1+
name: "CI Tests with dependencies from helm chart"
22
on: [pull_request, push]
33

44
jobs:

.github/workflows/docker-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Docker Publish"
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
build-and-publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Login to Docker Hub
13+
uses: docker/login-action@v3
14+
with:
15+
username: miaplaza
16+
password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
18+
- name: Build and push Docker image
19+
uses: docker/build-push-action@v6
20+
with:
21+
context: .
22+
push: true
23+
tags: |
24+
miaplaza/middlemail:latest
25+
miaplaza/middlemail:${{ github.ref_name }}

0 commit comments

Comments
 (0)