mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
Merge pull request #25 from linux-odyssey/fix-deploy-image
fix: add build base image in CI/CD workflow
This commit is contained in:
3 files changed
+20
-6
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user