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