Skip to content

Bump version to v3.3.33 #127

Bump version to v3.3.33

Bump version to v3.3.33 #127

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Extract tag
id: extract_tag
run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Log in to Docker Hub
run: echo "${{ env.DOCKER_TOKEN }}" | docker login docker.io -u "${{ env.DOCKER_USERNAME}}" --password-stdin
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag ghcr.io/aio-it/mmchatgpt:${{ env.TAG }} --tag docker.io/lbr88/mmchatgpt:${{ env.TAG }}
docker tag ghcr.io/aio-it/mmchatgpt:${{ env.TAG }} ghcr.io/aio-it/mmchatgpt:latest
docker tag docker.io/lbr88/mmchatgpt:${{ env.TAG }} docker.io/lbr88/mmchatgpt:latest
- name: Run Trivy scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -
./bin/trivy image ghcr.io/aio-it/mmchatgpt:${{ env.TAG }}
./bin/trivy image docker.io/lbr88/mmchatgpt:${{ env.TAG }}
./bin/trivy image ghcr.io/aio-it/mmchatgpt:latest
./bin/trivy image docker.io/lbr88/mmchatgpt:latest
- name: Push the Docker image with specific tag to GitHub Container Registry
run: docker push ghcr.io/aio-it/mmchatgpt:${{ env.TAG }}
- name: Push the Docker image with latest tag to GitHub Container Registry
run: docker push ghcr.io/aio-it/mmchatgpt:latest
- name: Push the Docker image with specific tag to Docker Hub
run: docker push docker.io/lbr88/mmchatgpt:${{ env.TAG }}
- name: Push the Docker image with latest tag to Docker Hub
run: docker push docker.io/lbr88/mmchatgpt:latest