Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Dec 15, 2023
1 parent 1cd7086 commit 19d944a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/rivet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Rivet CLI
run: |
export RIVET_CLI_VERSION="v0.3.0"
curl -fsSL https://raw.githubusercontent.com/rivet-gg/cli/main/install/unix.sh | sh
- name: Generate ns_name and version_name
id: derive_names
run: |
Expand All @@ -31,13 +26,6 @@ jobs:
echo "::set-output name=ns_name::$ns_name"
echo "::set-output name=version_name::$version_name"
- name: Create Namespace
env:
RIVET_API_ENDPOINT: "https://api.staging2.gameinc.io"
RIVET_TOKEN: ${{ secrets.RIVET_TOKEN }}
run: |
rivet namespace create --id "${{ steps.derive_names.outputs.ns_name }}" --name "$branch_name" --version "0.0.1" || true
build_job_matchmaker:
name: Build Docker Image (Dockerfile)
needs: prepare
Expand Down Expand Up @@ -83,7 +71,7 @@ jobs:
- name: Build CDN
id: build_cdn
run: |
output=$(rivet site build-push --format json --name '${{ needs.prepare.outputs.ns_name }}' --command 'yarn install && yarn run build' --path 'yarn install && yarn run build')
output=$(rivet site build-push --format json --name '${{ needs.prepare.outputs.ns_name }}' --command 'yarn install && yarn run build' --path 'dist')
echo "::set-output name=site_id::$(echo $output | jq -r '.site_id')"
deploy:
Expand All @@ -102,6 +90,11 @@ jobs:
export RIVET_CLI_VERSION="v0.3.0"
curl -fsSL https://raw.githubusercontent.com/rivet-gg/cli/main/install/unix.sh | sh
- name: Create Namespace
run: |
# Ignore error if namespace already exists
rivet namespace create --id "${{ needs.prepare.outputs.ns_name }}" --name "$branch_name" --version "0.0.1" || true
- name: Deploy Version
run: |
rivet deploy --namespace '${{ needs.prepare.outputs.ns_name }}' --name '${{ needs.prepare.outputs.version_name}}' --override 'matchmaker.docker.image_id="${{ needs.build_job_matchmaker.outputs.image_id }}"' --override 'cdn.site_id="${{ needs.build_cdn.outputs.site_id }}"'
Expand Down

0 comments on commit 19d944a

Please sign in to comment.