-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 834 Bytes
/
main.yml
File metadata and controls
32 lines (30 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build and Push Docker image
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Login Dockerhub
uses: docker/login-action@v3.2.0
with:
# Username used to log against the Docker registry
username: ${{ secrets.DOCKER_USERNAME }}
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: 7ommymerlin/notify-scheduler:latest