diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2281d09..7b0625c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -86,6 +86,14 @@ jobs: with: version: 'v3.14.0' # 任意のHelmバージョン + - name: Install oras + run: | + VERSION="1.3.2" + curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz" + mkdir -p oras-install/ + tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/ + sudo mv oras-install/oras /usr/local/bin/ + - name: Log in to GHCR run: | echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin @@ -93,10 +101,19 @@ jobs: - name: Package and Push Helm Chart run: | OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]') - helm package try-margo/plugfest202607/apps/edge-app/helm-chart + cd try-margo/plugfest202607/apps/edge-app/helm-chart + helm package . ls helm push *.tgz oci://ghcr.io/$OWNER + - name: Push application package + run: | + OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]') + cd try-margo/plugfest202607/apps/edge-app/application-description/ + oras push ghcr.io/$OWNER/edge-app-helm-app-package:latest \ + --artifact-type "application/vnd.margo.app.v1+json" \ + margo.yaml:application/vnd.margo.app.description.v1+yaml + k3s-tests: name: Test helm-chart on k3s runs-on: ubuntu-latest diff --git a/try-margo/plugfest202607/apps/edge-app/application-description/margo.yaml b/try-margo/plugfest202607/apps/edge-app/application-description/margo.yaml index e2bce2b..b55850c 100644 --- a/try-margo/plugfest202607/apps/edge-app/application-description/margo.yaml +++ b/try-margo/plugfest202607/apps/edge-app/application-description/margo.yaml @@ -15,7 +15,7 @@ deploymentProfiles: components: - name: edge-app properties: - repository: oci://harbor.machine:8443/library/edge-app-chart + repository: oci://ghcr.io/oomichi-melco/edge-app-chart revision: 1.0.0 wait: true - type: compose