Skip to content

Update frontend and backend #52

Update frontend and backend

Update frontend and backend #52

# 1. build the image
# 2. tag the image
# 3. push the image to private repository
# 4. deploy the image to kubernetes cluster
# 5. update the deployment in kubernetes cluster
# 6. update the service in kubernetes cluster
name: deploy-test
on:
pull_request:
branches: [main]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:go-server"
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/gptube:ci