fix: use shell commands for docker build/push in CI
Some checks failed
Build and Push Docker Image / build (push) Failing after 30s

This commit is contained in:
2026-02-08 12:49:03 +08:00
parent a8af8d1b64
commit a18e137792

View File

@@ -7,22 +7,15 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Login to Gitea Registry - name: Login to Gitea Registry
uses: docker/login-action@v3 run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.chatgqt.top -u ${{ gitea.actor }} --password-stdin
with:
registry: gitea.chatgqt.top
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and Push - name: Build Docker Image
uses: docker/build-push-action@v5 run: docker build -t gitea.chatgqt.top/gqt/test-ci:latest .
with:
context: . - name: Push Docker Image
push: true run: docker push gitea.chatgqt.top/gqt/test-ci:latest
tags: gitea.chatgqt.top/gqt/test-ci:latest