feat(readme): update docker-compose flow #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |