Compare commits
No commits in common. "main" and "v1.2.0" have entirely different histories.
3 changed files with 1 additions and 16 deletions
|
|
@ -26,9 +26,6 @@ jobs:
|
||||||
id: docker
|
id: docker
|
||||||
with:
|
with:
|
||||||
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||||
tags: |
|
|
||||||
type=sha,prefix=
|
|
||||||
type=ref,event=tag
|
|
||||||
-
|
-
|
||||||
name: Login to registry
|
name: Login to registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
@ -50,7 +47,3 @@ jobs:
|
||||||
allow: network.host
|
allow: network.host
|
||||||
network: host
|
network: host
|
||||||
tags: ${{ steps.docker.outputs.tags }}
|
tags: ${{ steps.docker.outputs.tags }}
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: ./.forgejo/workflows/deploy.yaml
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -12,13 +11,6 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Deploy action
|
||||||
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-deploy-action@main
|
uses: https://edp.buildth.ing/DevFW-CICD/edge-connect-deploy-action@main
|
||||||
id: deploy
|
id: deploy
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
containers:
|
containers:
|
||||||
- name: edgeconnect-coder
|
- name: edgeconnect-coder
|
||||||
image: ###IMAGETAG###
|
image: nginx:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue