From 996a887de038cd3ca9635bb9a0623f031035886d Mon Sep 17 00:00:00 2001 From: Rongrong <15956627+Rongronggg9@users.noreply.github.com> Date: Fri, 6 Aug 2021 02:03:25 +0800 Subject: [PATCH] create workflow --- .github/workflows/publish-docker-image.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish-docker-image.yml diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml new file mode 100644 index 0000000..4ba97a0 --- /dev/null +++ b/.github/workflows/publish-docker-image.yml @@ -0,0 +1,21 @@ +name: Publish Docker image +on: + push: + branches: [ main ] +jobs: + push_to_docker_hub: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + 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: Push to Docker Hub + uses: docker/build-push-action@v2 + with: + push: true + tags: rongronggg9/slashbot:latest