Merge branch 'main' of ssh://git.commandware.com:2222/demos/api7-demo
All checks were successful
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-web (push) Successful in 25s
Build and Deploy / build-api (push) Successful in 24s

This commit is contained in:
d.viti
2025-10-07 15:02:32 +02:00
2 changed files with 3 additions and 11 deletions

View File

@@ -18,27 +18,23 @@ jobs:
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry - name: Log in to Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }} registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}
username: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
password: ${{ secrets.PACKAGES_PUSH_TOKEN }} password: ${{ secrets.TOKEN }}
- name: Extract metadata for web image - name: Extract metadata for web image
id: meta-web id: meta-web
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/web images: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/web
tags: |
type=ref,event=branch
- name: Build and push web image - name: Build and push web image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: ./web context: ./web
file: ./web/Dockerfile file: ./web/Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta-web.outputs.tags }} tags: ${{ steps.meta-web.outputs.tags }}
labels: ${{ steps.meta-web.outputs.labels }} labels: ${{ steps.meta-web.outputs.labels }}
cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/web:buildcache cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/web:buildcache
@@ -54,27 +50,23 @@ jobs:
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry - name: Log in to Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }} registry: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}
username: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
password: ${{ secrets.PACKAGES_PUSH_TOKEN }} password: ${{ secrets.TOKEN }}
- name: Extract metadata for api image - name: Extract metadata for api image
id: meta-api id: meta-api
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/api images: ${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/api
tags: |
type=ref,event=branch
- name: Build and push api image - name: Build and push api image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: ./api context: ./api
file: ./api/Dockerfile file: ./api/Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta-api.outputs.tags }} tags: ${{ steps.meta-api.outputs.tags }}
labels: ${{ steps.meta-api.outputs.labels }} labels: ${{ steps.meta-api.outputs.labels }}
cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/api:buildcache cache-from: type=registry,ref=${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/${{ gitea.repository }}/api:buildcache

View File

@@ -56,7 +56,7 @@ jobs:
echo "📤 Uploading chart to Gitea Package Registry..." echo "📤 Uploading chart to Gitea Package Registry..."
curl --fail-with-body \ curl --fail-with-body \
-H "Authorization: token ${{ secrets.PACKAGES_PUSH_TOKEN }}" \ -H "Authorization: token ${{ secrets.TOKEN }}" \
-X POST \ -X POST \
-F "chart=@${CHART_FILE}" \ -F "chart=@${CHART_FILE}" \
https://${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm/api/charts https://${{ vars.PACKAGES_REGISTRY || gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm/api/charts