Potion/.github/workflows/deploy.yml
Hayden Hargreaves 0017d1a3d5 (FEAT): Created workflow.
This should work, pretty simple, just building and pushing to Dockerhub.
The server will handle listening and watching for docker changes.
2025-07-21 20:22:44 -07:00

29 lines
615 B
YAML

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