From ab847ee2fa84e9a7ae9a07a0a7f377046420deaa Mon Sep 17 00:00:00 2001 From: Marilynn Paranada <129602245+shanhsishenji@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:04:54 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..eaefe1954 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Docker Build and Push + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + push: true + tags: mos98/ok_moss_best:latest