fix: try use environment
Build image / Build base frontend image (push) Successful in 2m54s
Build image / Build nginx image (push) Failing after 24s

This commit is contained in:
2026-09-06 11:46:38 +04:00
parent f0d2ed07af
commit 1843d8598c
+5 -4
View File
@@ -54,6 +54,9 @@ jobs:
name: Build nginx image name: Build nginx image
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-frontend needs: build-frontend
env:
BUILDER_COMMIT: ${{ needs.build-frontend.outputs.builder_commit }}
UI_COMMIT: ${{ needs.build-frontend.outputs.ui_commit }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@@ -74,7 +77,7 @@ jobs:
images: code.kruzya.dev/${{ gitea.repository }}/nginx images: code.kruzya.dev/${{ gitea.repository }}/nginx
tags: | tags: |
type=sha,format=short type=sha,format=short
type=raw,value=ui-${{ steps.git-parse.outputs.PULP_UI_COMMIT }} type=raw,value=ui-${{ env.UI_COMMIT }}
- name: Build nginx image - name: Build nginx image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
@@ -84,7 +87,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
BASE_IMG=code.kruzya.dev/crazyhackgut/pulp-ui-cri/base-frontend:sha-${{ needs.build-frontend.outputs.builder_commit }} BASE_IMG=code.kruzya.dev/crazyhackgut/pulp-ui-cri/base-frontend:sha-${{ env.BUILDER_COMMIT }}
# TODO: add build nginx image