Skip to content

Commit 6aaf70b

Browse files
committed
chore: DockerHub image update workflow
1 parent 732a378 commit 6aaf70b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Docker login
18+
run: docker login -u ${{secrets.DOCKER_USER}} -p ${{secrets.DOCKER_PASSWORD}}
19+
- name: Build the Docker image
20+
run: docker build . --file Dockerfile --tag ${{secrets.DOCKER_USER}}/depex
21+
- name: Push the Docker image
22+
run: docker push ${{secrets.DOCKER_USER}}/depex

0 commit comments

Comments
 (0)