From 5eb2fee2f562d9ab6cf771bc06ef59cec0e52e8b Mon Sep 17 00:00:00 2001 From: Cassius0924 <2670226747@qq.com> Date: Fri, 8 Mar 2024 16:33:49 +0800 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..397ae29 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,29 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - master + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Docker Login + uses: docker/login-action@v3.0.0 + with: + username: cassius0924 + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5.2.0 + with: + context: . + push: true + tags: cassius0924/wechatter:latest