mirror of https://github.com/dapr/quickstarts.git
Merge remote-tracking branch 'upstream/master' into upstream_quickstarts
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
This commit is contained in:
commit
21138fe564
|
@ -82,6 +82,36 @@ jobs:
|
||||||
make push
|
make push
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
- name: GitHub container registry login
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build docker image
|
||||||
|
env:
|
||||||
|
SAMPLE_REGISTRY: ghcr.io/dapr/samples
|
||||||
|
run: |
|
||||||
|
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
|
||||||
|
for sample in "${SAMPLE_LIST[@]}"; do
|
||||||
|
echo "Building image for ${sample}..."
|
||||||
|
pushd ${sample}
|
||||||
|
make build
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
- name: publish image to ghcr
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
env:
|
||||||
|
SAMPLE_REGISTRY: ghcr.io/dapr/samples
|
||||||
|
run: |
|
||||||
|
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
|
||||||
|
for sample in "${SAMPLE_LIST[@]}"; do
|
||||||
|
echo "Push image for ${sample}..."
|
||||||
|
pushd ${sample}
|
||||||
|
make push
|
||||||
|
popd
|
||||||
|
done
|
||||||
publish:
|
publish:
|
||||||
name: Publish docker manifest
|
name: Publish docker manifest
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -114,3 +144,34 @@ jobs:
|
||||||
make manifest-push
|
make manifest-push
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
- name: GitHub container registry login
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: create ghcr manifest
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
env:
|
||||||
|
SAMPLE_REGISTRY: ghcr.io/dapr/samples
|
||||||
|
run: |
|
||||||
|
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
|
||||||
|
for sample in "${SAMPLE_LIST[@]}"; do
|
||||||
|
echo "Building image for ${sample}..."
|
||||||
|
pushd ${sample}
|
||||||
|
make manifest-create
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
- name: publish manifest to ghcr
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
env:
|
||||||
|
SAMPLE_REGISTRY: ghcr.io/dapr/samples
|
||||||
|
run: |
|
||||||
|
SAMPLE_LIST=(tutorials/hello-kubernetes tutorials/distributed-calculator tutorials/pub-sub tutorials/bindings tutorials/observability tutorials/secretstore)
|
||||||
|
for sample in "${SAMPLE_LIST[@]}"; do
|
||||||
|
echo "Push image for ${sample}..."
|
||||||
|
pushd ${sample}
|
||||||
|
make manifest-push
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
|
|
@ -84,4 +84,4 @@ manifest-push-$(1):
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Generate docker manifest create
|
# Generate docker manifest create
|
||||||
$(foreach ITEM,$(APPS),$(eval $(call genDockerManifestPush,$(ITEM))))
|
$(foreach ITEM,$(APPS),$(eval $(call genDockerManifestPush,$(ITEM))))
|
|
@ -19,4 +19,4 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: python
|
- name: python
|
||||||
image: ghcr.io/dapr/samples/bindings-pythonapp:latest
|
image: ghcr.io/dapr/samples/bindings-pythonapp:latest
|
||||||
|
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: multiply
|
- name: multiply
|
||||||
image: ghcr.io/dapr/samples/distributed-calculator-python:latest
|
image: ghcr.io/dapr/samples/distributed-calculator-slow-python:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5001
|
- containerPort: 5001
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|
26596
tutorials/distributed-calculator/react-calculator/client/package-lock.json
generated
Normal file
26596
tutorials/distributed-calculator/react-calculator/client/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -13,7 +13,7 @@ const daprPort = process.env.DAPR_HTTP_PORT ?? 3500;
|
||||||
const daprUrl = `http://localhost:${daprPort}/v1.0/invoke`;
|
const daprUrl = `http://localhost:${daprPort}/v1.0/invoke`;
|
||||||
|
|
||||||
// The name of the state store is specified in the components yaml file.
|
// The name of the state store is specified in the components yaml file.
|
||||||
// For this sample, state store name is specified in the file at: https://github.com/dapr/quickstarts/blob/master/tutorials/hello-kubernetes/deploy/redis.yaml#L4
|
// For this sample, state store name is specified in the file at: https://github.com/dapr/quickstarts/blob/master/hello-kubernetes/deploy/redis.yaml#L4
|
||||||
const stateStoreName = `statestore`;
|
const stateStoreName = `statestore`;
|
||||||
const stateUrl = `http://localhost:${daprPort}/v1.0/state/${stateStoreName}`;
|
const stateUrl = `http://localhost:${daprPort}/v1.0/state/${stateStoreName}`;
|
||||||
|
|
||||||
|
|
|
@ -19,4 +19,4 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: python
|
- name: python
|
||||||
image: ghcr.io/dapr/samples/hello-k8s-python:latest
|
image: ghcr.io/dapr/samples/hello-k8s-python:latest
|
||||||
|
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: multiply
|
- name: multiply
|
||||||
image: ghcr.io/dapr/samples/distributed-calculator-slow-python:latest
|
image: ghcr.io/dapr/samples/distributed-calculator-python:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5001
|
- containerPort: 5001
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue