Update README.md #13
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: ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' # This will trigger the workflow for any tag push | |
jobs: | |
build_and_push_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push frontend | |
uses: docker/build-push-action@v2 | |
with: | |
context: frontend/. | |
push: true | |
tags: | | |
ghcr.io/${{ github.repository }}/frontend:latest | |
ghcr.io/${{ github.repository }}/frontend:${{ github.ref_name }} | |
- name: Build and push backend | |
uses: docker/build-push-action@v2 | |
with: | |
context: backend/. | |
push: true | |
tags: | | |
ghcr.io/${{ github.repository }}/backend:latest | |
ghcr.io/${{ github.repository }}/backend:${{ github.ref_name }} |