-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild of pixorama for serverpod 1.2.3 #7
Open
saammz
wants to merge
17
commits into
serverpod:main
Choose a base branch
from
saammz:serverpod-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
31a4007
Rebuild of pixorama for serverpod 1.2.3
saammz 13a392e
resolved comments
saammz 25adadc
updated deprecated files
saammz 8b22bee
removed os files
saammz 9e95acd
updated models to correct naming convention
saammz 69de52f
migrated models
saammz b41027b
fixed comments
saammz 02e1a68
Fixed and implemented comments
developersFreelance 4d3b9c8
Deleted DS_Store
saammz 82db64a
Deleted DS_Store
saammz 1522125
Deleted .DS_Store
saammz 0a04480
changed file depencies
developersFreelance c9e0811
added comments
developersFreelance 1470a84
Merge branch 'serverpod-update' of https://github.com/saammz/pixorama…
developersFreelance 9262eb7
updated ReadMe
developersFreelance 4acc3bc
updated README.md
developersFreelance adbe69a
updated comments
developersFreelance File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Deploy to GCP | ||
on: | ||
push: | ||
branches: [ deployment-gcp-production, deployment-gcp-staging ] | ||
workflow_dispatch: | ||
inputs: | ||
target: | ||
description: 'Target' | ||
required: true | ||
default: 'production' | ||
type: choice | ||
options: | ||
- 'staging' | ||
- 'production' | ||
|
||
env: | ||
# TODO: Update with your Google Cloud project id. If you have changed the | ||
# region and zone in your Terraform configuration, you will need to change | ||
# it here too. | ||
PROJECT: "<PROJECT ID>" | ||
REGION: us-central1 | ||
ZONE: us-central1-c | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to Google Cloud Run | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setting Target Mode from Input | ||
if: ${{ github.event.inputs.target != '' }} | ||
run: echo "TARGET=${{ github.event.inputs.target }}" >> $GITHUB_ENV | ||
|
||
- name: Setting Target mode based on branch | ||
if: ${{ github.event.inputs.target == '' }} | ||
run: echo "TARGET=${GITHUB_REF##*-}" >> $GITHUB_ENV | ||
|
||
- name: Set repository | ||
run: echo "REPOSITORY=serverpod-${{ env.TARGET }}-container" >> $GITHUB_ENV | ||
|
||
- name: Set Image Name | ||
run: echo "IMAGE_NAME=serverpod" >> $GITHUB_ENV | ||
|
||
- name: Set Service Name | ||
run: echo "SERVICE_NAME=$(echo $IMAGE_NAME | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_ENV | ||
|
||
- name: Test | ||
run: echo $SERVICE_NAME | ||
|
||
|
||
- id: "auth" | ||
name: "Authenticate to Google Cloud" | ||
uses: "google-github-actions/auth@v1" | ||
with: | ||
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}" | ||
|
||
- name: Create passwords file | ||
working-directory: pixorama_server | ||
shell: bash | ||
env: | ||
SERVERPOD_PASSWORDS: ${{ secrets.SERVERPOD_PASSWORDS }} | ||
run: | | ||
pwd | ||
echo "$SERVERPOD_PASSWORDS" > config/passwords.yaml | ||
ls config/ | ||
|
||
- name: Configure Docker | ||
working-directory: pixorama_server | ||
run: gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev | ||
|
||
- name: Build the Docker image | ||
working-directory: pixorama_server | ||
run: "docker build -t $IMAGE_NAME ." | ||
|
||
- name: Tag the Docker image | ||
working-directory: pixorama_server | ||
run: docker tag $IMAGE_NAME ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT }}/${{ env.REPOSITORY }}/$IMAGE_NAME | ||
|
||
- name: Push Docker image | ||
working-directory: pixorama_server | ||
run: docker push ${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT }}/${{ env.REPOSITORY }}/$IMAGE_NAME | ||
|
||
# Uncomment the following code to automatically restart the servers in the | ||
# instance group when you push a new version of your code. Before doing | ||
# this, make sure that you have successfully deployed a first version. | ||
# | ||
# - name: Restart servers in instance group | ||
# run: | | ||
# gcloud compute instance-groups managed rolling-action replace serverpod-${{ env.TARGET }}-group \ | ||
# --project=${{ env.PROJECT }} \ | ||
# --replacement-method='substitute' \ | ||
# --max-surge=1 \ | ||
# --max-unavailable=1 \ | ||
# --zone=${{ env.ZONE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dartdoc: | ||
categories: | ||
"Endpoint": | ||
markdown: doc/endpoint.md | ||
name: Endpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Callable endpoints | ||
|
||
Each class contains callable methods that will call a method on the server side. These are normally defined in the `endpoint` directory in your server project. This client sends requests to these endpoints and returns the result. | ||
|
||
Example usage: | ||
|
||
```dart | ||
// How to use ExampleEndpoint. | ||
client.example.hello("world!"); | ||
|
||
// Generic format. | ||
client.<endpoint>.<method>(...); | ||
``` | ||
|
||
Please see the full official documentation [here](https://docs.serverpod.dev) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flutter run -d chrome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done