ci: hardcoded image coordinates
This commit is contained in:
parent
a36a9ed8f6
commit
06d7f5f980
1 changed files with 2 additions and 21 deletions
|
|
@ -15,29 +15,10 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Repository meta
|
||||
id: repository
|
||||
run: |
|
||||
registry=${{ github.server_url }}
|
||||
registry=${registry##http*://}
|
||||
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
||||
echo "registry=${registry}"
|
||||
repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')"
|
||||
echo "repository=${repository}" >> "$GITHUB_OUTPUT"
|
||||
echo "repository=${repository}"
|
||||
|
||||
- name: Docker meta
|
||||
uses: docker/metadata-action@v5
|
||||
id: docker
|
||||
with:
|
||||
images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}
|
||||
tags: |
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Replace Image Version
|
||||
run: |
|
||||
echo sed -i "s/###IMAGETAG###/${{ steps.docker.outputs.tags }}/g" ./EdgeConnectConfig.yaml
|
||||
sed -i "s/###IMAGETAG###/${{ steps.docker.outputs.tags }}/g" ./EdgeConnectConfig.yaml
|
||||
echo sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${{ github.sha }}@g" ./EdgeConnectConfig.yaml
|
||||
sed -i "s@###IMAGETAG###@edp.buildth.ing/devfw-cicd/edgeconnect-action-demo:${{ github.sha }}@g" ./EdgeConnectConfig.yaml
|
||||
cat ./EdgeConnectConfig.yaml
|
||||
|
||||
- name: Deploy action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue