Skip to content

Commit

Permalink
add docker publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Li committed Nov 3, 2024
1 parent d7f2a62 commit e0c2df7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Push Docker Image

on:
push:
branches:
- main # Change this to the branch you want to trigger builds on

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: poeli/wastewater_qpcr_app:latest
file: Dockerfile # Update this if your Dockerfile has a different name or location

0 comments on commit e0c2df7

Please sign in to comment.