-
-
Notifications
You must be signed in to change notification settings - Fork 22
29 lines (23 loc) · 1.08 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 }}/thuai6_base:base -f ./dependency/Dockerfile/Dockerfile_base .
#- name: Push base image to DockerHub
# run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai6_base:base
- name: Build cpp_compile docker image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/thuai6_cpp:latest -f ./dependency/Dockerfile/Dockerfile_cpp .
- name: Push cpp_compile image to DockerHub
run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai6_cpp:latest
- name: Build run docker image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/thuai6_run:latest -f ./dependency/Dockerfile/Dockerfile_run .
- name: Push run image to DockerHub
run: docker push ${{ secrets.DOCKER_USERNAME }}/thuai6_run:latest