small update to schedule doc #17
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: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build_and_push_docker_image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build the Docker images | |
run: | | |
docker build -t cscc01-linkup_frontend:latest ./frontend | |
docker build -t cscc01-linkup_backend:latest ./backend | |
- name: Tag and push the Docker images | |
run: | | |
docker tag cscc01-linkup_frontend:latest ${{ secrets.DOCKERHUB_USERNAME }}/cscc01-linkup_frontend:latest | |
docker tag cscc01-linkup_backend:latest ${{ secrets.DOCKERHUB_USERNAME }}/cscc01-linkup_backend:latest | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/cscc01-linkup_frontend:latest | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/cscc01-linkup_backend:latest | |
- name: List Docker images | |
run: docker images |