(FEAT): Created workflow.

This should work, pretty simple, just building and pushing to Dockerhub.
The server will handle listening and watching for docker changes.
This commit is contained in:
Hayden Hargreaves 2025-07-21 20:22:44 -07:00
parent eec8ed00c3
commit 0017d1a3d5

28
.github/workflows/deploy.yml vendored Normal file
View File

@ -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