diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7862016..f10a91d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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