Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a3e958d1b | |||
| eb74d05765 | |||
| a9f67e4eb0 | |||
| 06d7f5f980 | |||
| a36a9ed8f6 | |||
| 81006d192b |
3 changed files with 16 additions and 1 deletions
|
|
@ -26,6 +26,9 @@ jobs:
|
|||
id: docker
|
||||
with:
|
||||
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||
tags: |
|
||||
type=sha,prefix=
|
||||
type=ref,event=tag
|
||||
-
|
||||
name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
|
|
@ -47,3 +50,7 @@ jobs:
|
|||
allow: network.host
|
||||
network: host
|
||||
tags: ${{ steps.docker.outputs.tags }}
|
||||
|
||||
- name: Deploy
|
||||
uses: ./.forgejo/workflows/deploy.yaml
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
name: deploy
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
@ -11,6 +12,13 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Replace Image Version
|
||||
run: |
|
||||
sha="${{ github.sha }}"
|
||||
shortSha="${sha:0:7}"
|
||||
echo "Setting image version to: edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}"
|
||||
sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${shortSha}@g" ./k8s-deployment.yaml
|
||||
|
||||
- name: Deploy action
|
||||
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-deploy-action@main
|
||||
id: deploy
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ spec:
|
|||
volumes:
|
||||
containers:
|
||||
- name: edgeconnect-coder
|
||||
image: nginx:latest
|
||||
image: ###IMAGETAG###
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue