mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: add build base image in CI/CD workflow
This commit is contained in:
1 parent
221ffae37a
commit
4b43ab5050
3 files changed
+20
-6
No files matched your search
@@ -55,6 +55,14 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/linux-odyssey:app
|
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
|
- name: Build quest helloworld
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -40,6 +40,12 @@ services:
|
|||||||
- MONGO_PASS=user-password
|
- MONGO_PASS=user-password
|
||||||
- MONGO_DB=odyssey-test
|
- MONGO_DB=odyssey-test
|
||||||
|
|
||||||
|
base:
|
||||||
|
image: lancatlin/linux-odyssey:base
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./quests/Dockerfile
|
||||||
|
|
||||||
helloworld:
|
helloworld:
|
||||||
image: lancatlin/linux-odyssey:helloworld
|
image: lancatlin/linux-odyssey:helloworld
|
||||||
build:
|
build:
|
||||||
|
|||||||
+6
-6
@@ -48,18 +48,18 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- SWAGGER_FILE=/tmp/swagger.yaml
|
- SWAGGER_FILE=/tmp/swagger.yaml
|
||||||
|
|
||||||
helloworld:
|
|
||||||
image: lancatlin/linux-odyssey:helloworld
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: quests/helloworld/Dockerfile
|
|
||||||
|
|
||||||
base:
|
base:
|
||||||
image: lancatlin/linux-odyssey:base
|
image: lancatlin/linux-odyssey:base
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./quests/Dockerfile
|
dockerfile: ./quests/Dockerfile
|
||||||
|
|
||||||
|
helloworld:
|
||||||
|
image: lancatlin/linux-odyssey:helloworld
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: quests/helloworld/Dockerfile
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
players:
|
players:
|
||||||
|
|||||||
Reference in new issue
Block a user