Skip to content

Commit 9659630

Browse files
committed
add test
1 parent dad69e9 commit 9659630

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/layer.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14-
export-layer:
15-
uses: oomol/ovmlayer-rootfs/.github/workflows/export-package-layer.yml@main
16-
secrets:
17-
token: ${{ secrets.GITHUB_TOKEN }}
14+
# export-layer:
15+
# uses: oomol/ovmlayer-rootfs/.github/workflows/export-package-layer.yml@main
16+
# secrets:
17+
# token: ${{ secrets.GITHUB_TOKEN }}
1818
post-layer:
1919
runs-on: ubuntu-latest
20-
needs: export-layer
20+
# needs: export-layer
2121
steps:
2222
- name: Install OIDC Client from Core Package
2323
run: npm install @actions/[email protected] @actions/http-client
@@ -30,7 +30,10 @@ jobs:
3030
const coredemo = require('@actions/core')
3131
let id_token = await coredemo.getIDToken()
3232
coredemo.setOutput('id_token', id_token)
33-
- name: post
33+
- name: put
3434
run: |
3535
echo "Layer exported successfully."
36-
curl -X POST -H "Content-Type: application/json" -H "Authorization: github-action-${{ steps.id_token.outputs.id_token }}" -d '{"amd64": "https://static.oomol.com/layers/amd64-layer.zip", "arm64": "https://static.oomol.com/layers/arm64-layer.zip"}' registry.oomol.dev/-/oomol/packages/layer-example/0.0.1/file-paths
36+
curl -f -X PUT -H "Content-Type: application/json" -H "Authorization: github-action-${{ steps.id_token.outputs.id_token }}" -d '{"amd64": "https://static.oomol.com/layers/amd64-layer.zip", "arm64": "https://static.oomol.com/layers/arm64-layer.zip"}' https://registry.oomol.dev/-/oomol/packages/layer-example/0.0.1/file-paths
37+
- name: get
38+
run: |
39+
curl -f -H "Authorization: github-action-${{ steps.id_token.outputs.id_token }}" -H "Accept: application/json" https://registry.oomol.dev/-/oomol/packages/layer-example/0.0.1/file-paths

0 commit comments

Comments
 (0)