From 0017d1a3d58c7b0ff7e0a5903a641f5889e026b4 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Mon, 21 Jul 2025 20:22:44 -0700 Subject: [PATCH] (FEAT): Created workflow. This should work, pretty simple, just building and pushing to Dockerhub. The server will handle listening and watching for docker changes. --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d10ed84 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy application with Docker + +on: + push: + branches: + - master + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + push: true + tags: azpect3120/option.gophernest:latest