ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 40s

This commit is contained in:
Ivan Li 2023-05-22 11:22:00 +08:00
parent 9004511aba
commit d59f00c638

View File

@ -45,15 +45,13 @@ jobs:
- name: Build
run: cargo build --release
- run: echo "secrets.GITHUB_TOKEN ${{ secrets.GITHUB_TOKEN }}, secrets.GITEA_TOKEN ${{ secrets.GITEA_TOKEN }}"
- name: Log in to the Container registry
uses: https://github.com/docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
@ -68,6 +66,8 @@ jobs:
ACTIONS_RUNTIME_TOKEN: ''
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy to Gitea
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}