From 60417f3b372737a0c0f6a1ebb1337e840d018eb5 Mon Sep 17 00:00:00 2001 From: tatakai <150361932+ttktatakai@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:27:48 +0800 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..1a3c89f --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,21 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: | + docker login --username=${{ secrets.ALI_ACCOUNT }} --password=${{ secrets.ALI_PASSWORD }} registry.cn-hangzhou.aliyuncs.com + docker build . --file Dockerfile --tag registry.cn-hangzhou.aliyuncs.com/veops/messenger:latest + docker push registry.cn-hangzhou.aliyuncs.com/veops/messenger:latest