Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Commit dd2c23b

Browse files
committed
add workflow to build and publish docker image
1 parent cd81d29 commit dd2c23b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Publish Docker Image
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
push_to_registry:
9+
name: Push Docker image to Docker Hub
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
14+
- name: Log in to Docker Hub
15+
uses: docker/login-action@v1
16+
with:
17+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
18+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
19+
- name: Push to Docker Hub
20+
uses: docker/build-push-action@v2
21+
with:
22+
push: true
23+
tags: ghandmann/contacts-api:latest

0 commit comments

Comments
 (0)