add docker build workflow

This commit is contained in:
jc 2024-04-17 00:29:20 -04:00
commit cf63d4ed27
No known key found for this signature in database

29
.github/docker-push.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Build and Push Docker Image
on:
push:
branches:
- 'prod'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME}}/potoforio:latest