From 1dacd2bdc3f88bf40b64d1f6488c53ded30ef59e Mon Sep 17 00:00:00 2001 From: seorim <94429667+yunseorim1116@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:28:19 +0900 Subject: [PATCH] feat: ci cd (#16) --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 0000000..c7c7cfe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Build and Push Docker image + +on: + push: + branches: + - master + +jobs: + build-and-push: + 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_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: treeyoon/sd-jwt-test-api:latest