From e20c5ddde18d800bb6dc67dff11d003b755ac301 Mon Sep 17 00:00:00 2001 From: an-tao Date: Wed, 9 Oct 2024 16:27:04 +0800 Subject: [PATCH] Update trantor and add docker actions --- .github/workflows/docker-publish.yml | 29 ++++++++++++++++++++++++++++ trantor | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000000..6528afba01 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,29 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - master # 触发条件,可以根据需要调整分支 + +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 diff --git a/trantor b/trantor index ecc73357e0..cc9cef2822 160000 --- a/trantor +++ b/trantor @@ -1 +1 @@ -Subproject commit ecc73357e0371370235e48303642cfdc4217e6b8 +Subproject commit cc9cef2822247863b10858190365f106662938c2