Skip to content

Commit 930920e

Browse files
Merge pull request #19 from PythonGermany/PythonGermany-patch-1
Update and rename docker-build.yml to docker-ci.yml
2 parents 261eb68 + bb69bdb commit 930920e

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

.github/workflows/docker-build.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/docker-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Docker ci
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
docker-ci:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Log in to Docker Hub
14+
uses: docker/login-action@v3
15+
with:
16+
username: ${{ vars.DOCKERHUB_USERNAME }}
17+
password: ${{ secrets.DOCKERHUB_TOKEN }}
18+
19+
- name: Build the Docker image
20+
run: docker build . --tag ${{ vars.DOCKERHUB_USERNAME }}/webserv:latest
21+
22+
- name: Push the Docker image
23+
run: docker push ${{ vars.DOCKERHUB_USERNAME }}/webserv:latest

0 commit comments

Comments
 (0)