fix: add build base image in CI/CD workflow

This commit is contained in:
wancat committed 2023-09-10 19:03:31 +08:00
1 parent 221ffae37a
commit 4b43ab5050
3 files changed
+20 -6

No files matched your search

+8
View File
@@ -55,6 +55,14 @@ jobs:
push: true
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/linux-odyssey:app
- name: Build base image
uses: docker/build-push-action@v2
with:
context: .
file: ./quests/Dockerfile
push: false
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/linux-odyssey:base
- name: Build quest helloworld
uses: docker/build-push-action@v2
with:
+6
View File
@@ -40,6 +40,12 @@ services:
- MONGO_PASS=user-password
- MONGO_DB=odyssey-test
base:
image: lancatlin/linux-odyssey:base
build:
context: .
dockerfile: ./quests/Dockerfile
helloworld:
image: lancatlin/linux-odyssey:helloworld
build:
+6 -6
View File
@@ -48,18 +48,18 @@ services:
environment:
- SWAGGER_FILE=/tmp/swagger.yaml
helloworld:
image: lancatlin/linux-odyssey:helloworld
build:
context: .
dockerfile: quests/helloworld/Dockerfile
base:
image: lancatlin/linux-odyssey:base
build:
context: .
dockerfile: ./quests/Dockerfile
helloworld:
image: lancatlin/linux-odyssey:helloworld
build:
context: .
dockerfile: quests/helloworld/Dockerfile
networks:
internal:
players: