This commit is contained in:
6
.github/workflows/pipeline.yml
vendored
6
.github/workflows/pipeline.yml
vendored
@@ -22,9 +22,11 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push backend image
|
- name: Build and push backend image
|
||||||
|
env:
|
||||||
|
IMAGE_NAME: ${{ vars.IMAGE_NAME }}
|
||||||
run: |
|
run: |
|
||||||
docker build -q -t alexmickelson/ai-liveview:$GITHUB_RUN_NUMBER .
|
docker build -q -t $IMAGE_NAME:$GITHUB_RUN_NUMBER .
|
||||||
docker push -q alexmickelson/ai-liveview:$GITHUB_RUN_NUMBER
|
docker push -q $IMAGE_NAME:$GITHUB_RUN_NUMBER
|
||||||
|
|
||||||
- name: Deploy to Kubernetes
|
- name: Deploy to Kubernetes
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: ai-ha-elixir
|
- name: ai-ha-elixir
|
||||||
image: alexmickelson/ai-liveview:$GITHUB_RUN_NUMBER
|
image: alexmickelson/$IMAGE_NAME:$GITHUB_RUN_NUMBER
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
Reference in New Issue
Block a user