Update .gitea/workflows/backend.yml
This commit is contained in:
@@ -17,16 +17,25 @@ jobs:
|
|||||||
- name: Install Git and Docker CLI
|
- name: Install Git and Docker CLI
|
||||||
run: apk add --no-cache git docker-cli docker-cli-buildx
|
run: apk add --no-cache git docker-cli docker-cli-buildx
|
||||||
|
|
||||||
|
- name: Log in to Gitea Container Registry
|
||||||
|
# This uses the automated token provided natively by Gitea Actions
|
||||||
|
run: echo "${{ secrets.babymonitor_cicd }}" | docker login gitea.lan -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
|
- name: Create Custom Buildx Builder for HTTP
|
||||||
|
run: |
|
||||||
|
# 1. Write a configuration rule forcing plain HTTP for your local domain
|
||||||
|
echo '[registry."gitea.lan"]' > buildkitd.toml
|
||||||
|
echo ' http = true' >> buildkitd.toml
|
||||||
|
|
||||||
|
# 2. Tell buildx to create and use a builder with this rule
|
||||||
|
docker buildx create --use --name local-http-builder --config buildkitd.toml
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
# Tells the action to use the local 'git' binary we just installed
|
# Tells the action to use the local 'git' binary we just installed
|
||||||
set-safe-directory: 'true'
|
set-safe-directory: 'true'
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
|
||||||
# This uses the automated token provided natively by Gitea Actions
|
|
||||||
run: echo "${{ secrets.babymonitor_cicd }}" | docker login gitea.lan -u ${{ github.actor }} --password-stdin
|
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
|||||||
Reference in New Issue
Block a user