This commit is contained in:
parent
9004511aba
commit
d59f00c638
@ -46,14 +46,12 @@ 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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user