Skip to content

Commit f89f1a1

Browse files
authored
Add GitHub Actions workflow for Docker build and push
1 parent 61c841f commit f89f1a1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Push Docker image
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build-and-push:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out the code
15+
uses: actions/checkout@v2
16+
- name: Login Dockerhub
17+
uses: docker/login-action@v3.2.0
18+
with:
19+
# Username used to log against the Docker registry
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
# Password or personal access token used to log against the Docker registry
22+
password: ${{ secrets.DOCKER_PASSWORD }}
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v1
25+
26+
- name: Build and push
27+
uses: docker/build-push-action@v2
28+
with:
29+
context: .
30+
file: Dockerfile
31+
push: true
32+
tags: 7ommymerlin/notify-scheduler:latest

0 commit comments

Comments
 (0)