Skip to content

feat: Update CoCreate dependencies to their latest versions #71

feat: Update CoCreate dependencies to their latest versions

feat: Update CoCreate dependencies to their latest versions #71

Workflow file for this run

name: Dev Deployment
on:
push:
branches:
- dev
jobs:
package:
runs-on: ubuntu-latest
env:
IMAGE: docker.pkg.github.com/cocreate-app/cocreatews/cocreatews
VERSION: dev
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}:dev
- name: Push docker image
run: |
docker push ${IMAGE}:dev
# deploy:
# runs-on: ubuntu-latest
# needs:
# - package
# env:
# VERSION: dev
# KUBECONFIG_FILE: ${{ secrets.KUBECONFIG_DEV }}
# 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_DEV }}
# 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 -