ci: use node:20-alpine with docker-cli for runner compatibility
Some checks failed
Build & Push Docker Image / build (push) Failing after 3s
Some checks failed
Build & Push Docker Image / build (push) Failing after 3s
This commit is contained in:
@@ -9,27 +9,30 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Docker CLI
|
||||||
|
run: apk add --no-cache docker-cli
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
run: |
|
||||||
with:
|
echo "${{ secrets.REGISTRY_TOKEN }}" | \
|
||||||
registry: git.mischlabs.de
|
docker login git.mischlabs.de \
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
-u "${{ secrets.REGISTRY_USER }}" \
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
--password-stdin
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Build Docker Image
|
||||||
uses: docker/setup-buildx-action@v3
|
run: |
|
||||||
|
docker build \
|
||||||
|
--build-arg NEXT_PUBLIC_API_URL="${{ vars.NEXT_PUBLIC_API_URL }}" \
|
||||||
|
--build-arg NEXT_PUBLIC_APP_URL="${{ vars.NEXT_PUBLIC_APP_URL }}" \
|
||||||
|
-t git.mischlabs.de/mrdiderot/michess:latest \
|
||||||
|
.
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Push to Registry
|
||||||
uses: docker/build-push-action@v5
|
run: docker push git.mischlabs.de/mrdiderot/michess:latest
|
||||||
with:
|
|
||||||
context: .
|
- name: Logout
|
||||||
push: true
|
if: always()
|
||||||
tags: git.mischlabs.de/mrdiderot/michess:latest
|
run: docker logout git.mischlabs.de
|
||||||
build-args: |
|
|
||||||
NEXT_PUBLIC_API_URL=${{ vars.NEXT_PUBLIC_API_URL }}
|
|
||||||
NEXT_PUBLIC_APP_URL=${{ vars.NEXT_PUBLIC_APP_URL }}
|
|
||||||
cache-from: type=registry,ref=git.mischlabs.de/mrdiderot/michess:buildcache
|
|
||||||
cache-to: type=registry,ref=git.mischlabs.de/mrdiderot/michess:buildcache,mode=max
|
|
||||||
|
|||||||
Reference in New Issue
Block a user