Skip to content

Commit

Permalink
Test shared runners for Build and publish Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaschuk-ledger authored and slundy-ledger committed Oct 17, 2023
1 parent 01e4371 commit 43181a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_helm_lint_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
kubernetes-version: ${{ matrix.k8s }}
charts-path: ${{inputs.charts-path}}

publish-chartmuseum-dev:
name: publish-chartmuseum-dev
environment: chartmuseum-dev
Expand Down Expand Up @@ -101,4 +101,4 @@ jobs:
chartmuseum-url: ${{ secrets.CHARTMUSEUM_URL }}
chartmuseum-user: ${{ secrets.CHARTMUSEUM_USER }}
chartmuseum-password: ${{ secrets.CHARTMUSEUM_PASSWORD }}
force: true
force: true
7 changes: 1 addition & 6 deletions python-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ inputs:
description: "args to pass to docker build"
required: false
default: ""
outputs:
semantic-version:
description: "Extracted Semantic version."
value: ${{ steps.docker.outputs.semantic-version }}

runs:
using: "composite"
Expand All @@ -56,8 +52,7 @@ runs:
GOSS_IMAGE: goss_image:latest
GOSS_FILES_PATH: .github/goss

- uses: LedgerHQ/actions/python-app/docker@add-reusable-workflow-helm
id: docker
- uses: LedgerHQ/actions/python-app/docker@main
with:
build-args: ${{ inputs.docker-build-args }}

Expand Down
14 changes: 7 additions & 7 deletions python-app/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
REF: ${{ github.event.pull_request && github.head_ref || github.ref_name }}
run: |
if [[ $REF =~ ^[0-9]+\.[0-9]+\.[0-9]+(.*)$ ]]; then
echo "semantic-version=$REF" >> ${GITHUB_OUTPUT}
echo "semantic-version=$REF
else
echo "semantic-version=0.0.0-${REF//[\/_]/-}" >> ${GITHUB_OUTPUT}
fi
Expand All @@ -56,13 +56,13 @@ runs:
with:
images: ${{ env.IMAGE }}
flavor: |
latest=false
latest=false
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}},value=${{steps.extract-semantic-version.outputs.semantic-version}}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=semver,pattern={{version}},value=${{steps.extract-semantic-version.outputs.semantic-version}}
- if: ${{ steps.check-docker.outputs.is-docker-needed == 'true' }}
name: Set up QEMU
Expand Down

0 comments on commit 43181a9

Please sign in to comment.