Skip to content

Commit

Permalink
Merge pull request #32 from kate-goldenring/rename-release-artifact
Browse files Browse the repository at this point in the history
Output descriptive filename during Spin builds
  • Loading branch information
kate-goldenring authored Jan 26, 2024
2 parents 26b1157 + d998465 commit 278c8b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:

- name: generate checksums
run: |
sha256sum explorer/main.wasm > checksums.txt
sha256sum explorer/spin-kv-explorer.wasm > checksums.txt
- name: Create release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
generate_release_notes: true
files: |
explorer/main.wasm
explorer/spin-kv-explorer.wasm
checksums.txt
2 changes: 1 addition & 1 deletion explorer/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
main.wasm
spin-kv-explorer.wasm
.spin/
4 changes: 2 additions & 2 deletions spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ component = "golang-explorer"
route = "/internal/kv-explorer/..."

[component.golang-explorer]
source = "explorer/main.wasm"
source = "explorer/spin-kv-explorer.wasm"
allowed_outbound_hosts = ["redis://*:*", "mysql://*:*", "postgres://*:*"]
key_value_stores = ["default"]

[component.golang-explorer.variables]
kv_credentials = "{{ kv_explorer_user }}:{{ kv_explorer_password }}"

[component.golang-explorer.build]
command = "tinygo build -target=wasi -gc=leaking -no-debug -o main.wasm main.go"
command = "tinygo build -target=wasi -gc=leaking -no-debug -o spin-kv-explorer.wasm main.go"
workdir = "explorer"
watch = ["**/*.go", "go.mod", "index.html"]

0 comments on commit 278c8b7

Please sign in to comment.