Skip to content

feat: update version to 4.0.0 #405

feat: update version to 4.0.0

feat: update version to 4.0.0 #405

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: "arm64,amd64"
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Get version
run: echo "VERSION=$(node -p "require('./app/src/conf/version.json').version")" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
programzmh/chatnio:latest
programzmh/chatnio:${{ env.VERSION }}
cache-from: |
type=registry,ref=programzmh/chatnio:buildcache
type=gha
cache-to: |
type=registry,ref=programzmh/chatnio:buildcache,mode=max
type=gha,mode=max