Skip to content

Update module github.com/sashabaranov/go-gpt3 to v1.15.1 #179

Update module github.com/sashabaranov/go-gpt3 to v1.15.1

Update module github.com/sashabaranov/go-gpt3 to v1.15.1 #179

Workflow file for this run

name: build
on:
push:
paths-ignore:
- README.md
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build Docker Image
run: |
docker build -t ghcr.io/aybaze/aybot .
- name: Push Docker Image
run: |
export IMAGE=ghcr.io/aybaze/aybot
export TAG=`expr substr $GITHUB_SHA 1 8`
docker tag ghcr.io/aybaze/aybot ghcr.io/aybaze/aybot:$TAG
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker tag $IMAGE $IMAGE:$TAG
docker push $IMAGE:$TAG
docker push $IMAGE
if: github.ref == 'refs/heads/master'
- name: Deploy Kubernetes
run: |
export TAG=`expr substr $GITHUB_SHA 1 8`
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl
mkdir -p ~/.kube && echo ${{ secrets.KUBECONFIG_BASE64 }} | base64 -d > ~/.kube/config
envsubst < kubernetes/aybot.yaml | kubectl apply -f -
if: github.ref == 'refs/heads/master'