Skip to content

Commit

Permalink
Update trantor and add docker actions
Browse files Browse the repository at this point in the history
  • Loading branch information
an-tao committed Oct 9, 2024
1 parent ac0a1b8 commit 69282b7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Push Docker Image

on:
push:
branches:
- main # 触发条件,可以根据需要调整分支

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker image
run: |
cd docker/ubuntu
docker build -t drogonframework/drogon:latest .
- name: Push Docker image
run: |
docker push -t drogonframework/drogon:latest
2 changes: 1 addition & 1 deletion trantor

0 comments on commit 69282b7

Please sign in to comment.