Skip to content

Commit 0c8bbdf

Browse files
authored
add docker build and push to container registry
1 parent 3853455 commit 0c8bbdf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docker.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Docker Build and Push
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- main
10+
11+
12+
jobs:
13+
docker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Log in to Docker Hub
19+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
20+
with:
21+
username: jpberno
22+
password: dckr_pat_-5mmdsAWDh8DHZsJfZ4lN9d3Qew
23+
24+
- name: Build and push
25+
uses: docker/build-push-action@v5
26+
with:
27+
push: true
28+
tags: jpberno/test-drawdb:latest #ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ github.ref_name }}
29+

0 commit comments

Comments
 (0)