Skip to content

Commit

Permalink
Fix var references in deploy-image workflow (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Sep 12, 2023
1 parent 7242287 commit 5a8690b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
RELEASE_TAG=${REF#refs/tags/}
IMAGE="${vars.IMAGE_BASE}:${RELEASE_TAG}"
IMAGE="${{vars.IMAGE_BASE}}:${RELEASE_TAG}"
echo "Release tag: ${RELEASE_TAG}"
echo "release-tag=$RELEASE_TAG" >> $GITHUB_OUTPUT
Expand All @@ -36,16 +36,20 @@ jobs:
runs-on: ubuntu-latest
container:
image: quay.io/cloudnativetoolkit/cli-tools-ibmcloud:v1.2-v0.6.1-alpine
options: --user devops
needs: setup

env:
HOME: /home/devops

steps:
- name: IBM Cloud CE plugin
run: ibmcloud plugin install code-engine -f

- name: IBM Cloud login
run: ibmcloud login -r "${vars.REGION}" -g "${vars.RESOURCE_GROUP}" --apikey "${secrets.IBMCLOUD_APIKEY}"
run: ibmcloud login -r "${{vars.REGION}}" -g "${{vars.RESOURCE_GROUP}}" --apikey "${{secrets.IBMCLOUD_APIKEY}}"

- name: Update application
run: |
ibmcloud ce project select --name "${vars.CE_PROJECT_NAME}"
ibmcloud ce application update --name "${vars.CE_APP_NAME}"" -i "${{ needs.setup.outputs.image }}"
ibmcloud ce project select --name "${{vars.CE_PROJECT_NAME}}"
ibmcloud ce application update --name "${{vars.CE_APP_NAME}}" -i "${{ needs.setup.outputs.image }}"

0 comments on commit 5a8690b

Please sign in to comment.