From 4b8cc3089f6dffd53d6d6cda44c75e74d53b6c45 Mon Sep 17 00:00:00 2001 From: JerryZ Date: Fri, 8 Sep 2023 11:34:51 +0800 Subject: [PATCH] Create docker-image.yml (#15) --- .github/workflows/docker-image.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 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..cac3514 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,31 @@ +name: Docker Image for Gitlab Bot CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: goodideal/gitlab-bot:latest