Skip to content

feat: added initialize to openai and stripe #216

feat: added initialize to openai and stripe

feat: added initialize to openai and stripe #216

Workflow file for this run

name: Automated Deployment
on:
push:
branches:
- master
jobs:
about:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup nodejs
uses: actions/setup-node@v3
with:
node-version: 16
- name: setup nodejs
uses: actions/setup-node@v3
with:
node-version: 16
- name: Jaid/action-sync-node-meta
uses: jaid/[email protected]
with:
direction: overwrite-github # default is overwrite-file
githubToken: ${{ secrets.GITHUB }}
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup nodejs
uses: actions/setup-node@v3
with:
node-version: 14
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Auto Changog generator
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
package:
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.new_release_published == 'true'
env:
IMAGE: docker.pkg.github.com/cocreate-app/cocreatews/cocreatews
VERSION: ${{ needs.release.outputs.new_release_version }}
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: npm login
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: >
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
.npmrc
- name: Login docker registry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB }}
run: |
docker login docker.pkg.github.com -u ${GITHUB_ACTOR} -p ${GITHUB_TOKEN}
- name: Build docker image
run: docker build . -t ${IMAGE}:latest -t ${IMAGE}:${VERSION}
- name: Push docker image
run: |
docker push ${IMAGE}:latest
docker push ${IMAGE}:${VERSION}
# deploy:
# runs-on: ubuntu-latest
# needs:
# - release
# - package
# if: needs.release.outputs.new_release_published == 'true'
# env:
# VERSION: ${{ needs.release.outputs.new_release_version }}
# KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}
# KUBECONFIG: kubeconfig
# steps:
# - name: Checkout repository
# uses: actions/checkout@v1
# - name: Get kubectl
# run: |
# curl -LO https://dl.k8s.io/release/v1.20.0/bin/linux/amd64/kubectl
# chmod +x kubectl
# - name: Save kubeconfig
# env:
# KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}
# run: |
# echo ${KUBECONFIG_FILE} | base64 -d > ${KUBECONFIG}
# - name: Apply deployment
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB }}
# run: |
# sed -i "s/IMAGE_TAG/${VERSION}/g" manifests/kustomization.yaml
# ./kubectl kustomize manifests/ | ./kubectl apply -f -