Skip to content

chore: update releases #211

chore: update releases

chore: update releases #211

Workflow file for this run

name: CI & CD
on:
push:
branches:
- 'main'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/hbstack/site:latest,ghcr.io/hbstack/site:${{ github.sha }}
build-args: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
NETRC_USERNAME=${{ secrets.NETRC_GITHUB_USERNAME }}
NETRC_PASSWORD=${{ secrets.NETRC_GITHUB_PASSWORD }}
- uses: azure/setup-kubectl@v3
id: install
- run: |
mkdir -p ~/.kube
echo "${{ secrets.K3S_US_CONFIG }}" > ~/.kube/config
- name: Deploy to K8s
run: kubectl rollout restart deployment/hbstack-site -n hbstack