Merge branch 'dev' into main #32
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" | |
on: | |
push: | |
branches: [main] | |
jobs: | |
upload_docker_images: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to DockerHub | |
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
#- name: Build base docker image | |
# run: docker build -t ${{ secrets.DOCKER_USERNAME }}/thuai7_base:base -f ./dependency/Dockerfile/Dockerfile_base . | |
#- name: Push base image to DockerHub | |
# run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai7_base:base | |
- name: Build cpp_compile docker image | |
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/thuai7_cpp:latest -f ./dependency/Dockerfile/Dockerfile_cpp . | |
- name: Push cpp_compile image to DockerHub | |
run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai7_cpp:latest | |
- name: Build run_server docker image | |
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/thuai7_run_server:latest -f ./dependency/Dockerfile/Dockerfile_run_server . | |
- name: Push run_server image to DockerHub | |
run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai7_run_server:latest | |
- name: Build run_client docker image | |
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/thuai7_run_client:latest -f ./dependency/Dockerfile/Dockerfile_run_client . | |
- name: Push run_client image to DockerHub | |
run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai7_run_client:latest |