Skip to content

Commit

Permalink
GH action secrets and API key (#757)
Browse files Browse the repository at this point in the history
Add GH secret for API key to try-runtime job
Move DockerHub username from secret to vars
  • Loading branch information
simonsso authored Jun 22, 2023
1 parent 55e44ba commit 1c64241
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
toolchain: stable
target: wasm32-unknown-unknown
try-runtime-chain: dev
try-runtime-uri: wss://eden-rpc.dwellir.com:443
try-runtime-uri: wss://eden-rpc.dwellir.com:443/

jobs:
lints:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
"method": "system_version",
"params": [],
"id": 1
}' | jq '{"result"}[]'| sed 's/^"/"eden-/' >> $GITHUB_OUTPUT
}' | jq '{"result"}[]'| sed 's/^"/"try-runtime-snap-eden/' >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
id: get_version
- name: Install protobuf-compiler
Expand All @@ -136,7 +136,7 @@ jobs:
run: |
install -d snapshots
date > snapshots/created_at
./target/release/nodle-parachain try-runtime --runtime existing -lruntime=debug --chain ${{ env.try-runtime-chain }} create-snapshot "snapshots/eden-snapshot-full" -u ${{ env.try-runtime-uri}}
./target/release/nodle-parachain try-runtime --runtime existing -lruntime=debug --chain ${{ env.try-runtime-chain }} create-snapshot "snapshots/eden-snapshot-full" -u ${{ env.try-runtime-uri}}${{ secrets.DWELLIR_API_KEY}}
- name: Try runtime reuse snap
run: |
cat snapshots/created_at
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 1c64241

Please sign in to comment.