From 24a9078b2258be7082f331f7b45517e06dcdf066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Wed, 19 Oct 2022 14:48:45 +0200 Subject: [PATCH] fix: accessing job outputs --- .github/workflows/server-application.yml | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/server-application.yml b/.github/workflows/server-application.yml index c6aeadde1..2ff26ff36 100644 --- a/.github/workflows/server-application.yml +++ b/.github/workflows/server-application.yml @@ -87,7 +87,7 @@ jobs: with: path: | packages/**/dist - ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + ${{ needs.build.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -117,7 +117,7 @@ jobs: with: path: | packages/**/dist - ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + ${{ needs.build.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -148,7 +148,7 @@ jobs: with: path: | packages/**/dist - ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + ${{ needs.build.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -163,7 +163,7 @@ jobs: - name: Bundle if: steps.cache-build.outputs.cache-hit != 'true' - run: yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + run: yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ needs.build.outputs.temp_dir }} - name: Login to Docker Hub uses: docker/login-action@v2 @@ -184,8 +184,8 @@ jobs: uses: docker/build-push-action@v3 with: builder: ${{ steps.buildx.outputs.name }} - context: ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} - file: ${{ needs.build.steps.bundle-dir.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile + context: ${{ needs.build.outputs.temp_dir }} + file: ${{ needs.build.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: standardnotes/${{ inputs.service_name }}:${{ github.sha }} @@ -217,7 +217,7 @@ jobs: with: path: | packages/**/dist - ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + ${{ needs.build.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -232,7 +232,7 @@ jobs: - name: Bundle if: steps.cache-build.outputs.cache-hit != 'true' - run: yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + run: yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ needs.build.outputs.temp_dir }} - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 @@ -258,8 +258,8 @@ jobs: uses: docker/build-push-action@v3 with: builder: ${{ steps.buildx.outputs.name }} - context: ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} - file: ${{ needs.build.steps.bundle-dir.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile + context: ${{ needs.build.outputs.temp_dir }} + file: ${{ needs.build.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: | @@ -280,7 +280,7 @@ jobs: with: path: | packages/**/dist - ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + ${{ needs.build.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -295,7 +295,7 @@ jobs: - name: Bundle if: steps.cache-build.outputs.cache-hit != 'true' - run: yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} + run: yarn workspace ${{ inputs.workspace_name }} bundle --no-compress --output-directory ${{ needs.build.outputs.temp_dir }} - name: Login to Docker Hub uses: docker/login-action@v2 @@ -316,8 +316,8 @@ jobs: uses: docker/build-push-action@v3 with: builder: ${{ steps.buildx.outputs.name }} - context: ${{ needs.build.steps.bundle-dir.outputs.temp_dir }} - file: ${{ needs.build.steps.bundle-dir.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile + context: ${{ needs.build.outputs.temp_dir }} + file: ${{ needs.build.outputs.temp_dir }}/${{ inputs.package_path }}/Dockerfile platforms: linux/amd64,linux/arm64 push: true tags: |