Skip to content

Commit

Permalink
feat(mcc): update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lachieh committed Oct 23, 2023
1 parent 6a49928 commit a28daed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/release-multichannelchat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,25 @@ jobs:
- multi-channel-chat/nats-channel
include:
- working-directory: multi-channel-chat/api-gateway
artifact-name: api-gateway
artifact-name: mcc-api-gateway
wash-key: ${{ secrets.AWESOME_COSMONIC_MCC_APIGATEWAY_KEY }}
- working-directory: multi-channel-chat/chatlog
artifact-name: chatlog
artifact-name: mcc-chatlog
wash-key: ${{ secrets.AWESOME_COSMONIC_MCC_CHATLOG_KEY }}
- working-directory: multi-channel-chat/http-channel
artifact-name: http-channel
artifact-name: mcc-http-channel
wash-key: ${{ secrets.AWESOME_COSMONIC_MCC_HTTPCHANNEL_KEY }}
- working-directory: multi-channel-chat/nats-channel
artifact-name: nats-channel
artifact-name: mcc-nats-channel
wash-key: ${{ secrets.AWESOME_COSMONIC_MCC_NATSCHANNEL_KEY }}
steps:
- uses: actions/checkout@v3
- uses: wasmcloud/common-actions/install-wash@main
- name: Add wasm32-unknown-unknown
run: rustup target add wasm32-unknown-unknown

- name: Set wash subject key (api-gateway)
if: ${{ matrix.artifact-name == 'api-gateway' }}
run: echo "WASH_SUBJECT_KEY=${{ secrets.AWESOME_COSMONIC_MCC_APIGATEWAY_KEY }}" > $GITHUB_ENV
- name: Set wash subject key (chatlog)
if: ${{ matrix.artifact-name == 'chatlog' }}
run: echo "WASH_SUBJECT_KEY=${{ secrets.AWESOME_COSMONIC_MCC_CHATLOG_KEY }}" > $GITHUB_ENV
- name: Set wash subject key (http-channel)
if: ${{ matrix.artifact-name == 'http-channel' }}
run: echo "WASH_SUBJECT_KEY=${{ secrets.AWESOME_COSMONIC_MCC_HTTPCHANNEL_KEY }}" > $GITHUB_ENV
- name: Set wash subject key (nats-channel)
if: ${{ matrix.artifact-name == 'nats-channel' }}
run: echo "WASH_SUBJECT_KEY=${{ secrets.AWESOME_COSMONIC_MCC_NATSCHANNEL_KEY }}" > $GITHUB_ENV
- name: Set wash subject key
run: echo "WASH_SUBJECT_KEY=${{ matrix.wash-key }}" > $GITHUB_ENV

- name: Build and sign wasmCloud actor
env:
Expand Down Expand Up @@ -74,13 +68,13 @@ jobs:
- multi-channel-chat/nats-channel
include:
- working-directory: multi-channel-chat/api-gateway
artifact-name: api-gateway
artifact-name: mcc-api-gateway
- working-directory: multi-channel-chat/chatlog
artifact-name: chatlog
artifact-name: mcc-chatlog
- working-directory: multi-channel-chat/http-channel
artifact-name: http-channel
artifact-name: mcc-http-channel
- working-directory: multi-channel-chat/nats-channel
artifact-name: nats-channel
artifact-name: mcc-nats-channel
steps:
- uses: actions/checkout@v3
- uses: wasmcloud/common-actions/install-wash@main
Expand All @@ -107,7 +101,7 @@ jobs:
uses: wasmcloud/common-actions/oci-artifact-release@main
with:
artifact-path: ${{ matrix.working-directory }}/build/${{ env.actor-name }}_s.wasm
oci-url: ${{ secrets.AZURECR_PUSH_URL }}
oci-url: ${{ secrets.AZURECR_PUSH_URL }}
oci-repository: ${{ env.actor-name }}
oci-version: ${{ env.actor-version }}
oci-username: ${{ secrets.COSMONIC_AZURECR_PUSH_USER }}
Expand Down
1 change: 1 addition & 0 deletions multi-channel-chat/multi-channel-chat.wadm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# WIP

0 comments on commit a28daed

Please sign in to comment.