Skip to content

feat(readme): update docker-compose flow #2

feat(readme): update docker-compose flow

feat(readme): update docker-compose flow #2

Workflow file for this run

name: Push docker hub
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push webapp image
uses: docker/build-push-action@v4
with:
context: .
file: webapp.dockerfile
push: true
tags: tctien342/comfy-station-webapp:latest
- name: Build and push server image
uses: docker/build-push-action@v4
with:
context: .
file: server.dockerfile
push: true
tags: tctien342/comfy-station-backend:latest