From 6060c0ee7d80b7f8aa6a2aca8e17b6c1cfcad338 Mon Sep 17 00:00:00 2001 From: bennibbelink <79653949+bennibbelink@users.noreply.github.com> Date: Fri, 9 Feb 2024 07:43:51 -0600 Subject: [PATCH] use well-defined directory to checkout cymetric --- .github/workflows/build_test.yml | 6 +++--- .github/workflows/publish_latest.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 22e169424..55da544a9 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -76,7 +76,7 @@ jobs: with: repository: cyclus/cymetric ref: tag-build-arg - path: $HOME/cymetric + path: ${{ github.workspace }}/cymetric - name: Build and Test Cymetric if: ${{ github.event_name == 'pull_request' && steps.build-cycamore.outcome == 'success' }} @@ -84,8 +84,8 @@ jobs: continue-on-error: true uses: docker/build-push-action@v5 with: - context: $HOME/cymetric - file: $HOME/cymetric/docker/Dockerfile + context: ${{ github.workspace }}/cymetric + file: ${{ github.workspace }}/cymetric/docker/Dockerfile cache-from: type=registry,ref=ghcr.io/cyclus/cymetric_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cymetric:ci-layer-cache cache-to: type=registry,ref=ghcr.io/cyclus/cymetric_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cymetric:ci-layer-cache,mode=max tags: ghcr.io/cyclus/cymetric_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cymetric:ci-image-cache diff --git a/.github/workflows/publish_latest.yml b/.github/workflows/publish_latest.yml index f72dd8de0..318f579f2 100644 --- a/.github/workflows/publish_latest.yml +++ b/.github/workflows/publish_latest.yml @@ -71,14 +71,14 @@ jobs: with: repository: cyclus/cymetric ref: tag-build-arg - path: $HOME/cymetric + path: ${{ github.workspace }}/cymetric - name: Build and Test Cymetric continue-on-error: true uses: docker/build-push-action@v5 with: - context: $HOME/cymetric - file: $HOME/cymetric/docker/Dockerfile + context: ${{ github.workspace }}/cymetric + file: ${{ github.workspace }}/cymetric/docker/Dockerfile cache-from: type=registry,ref=ghcr.io/cyclus/cymetric_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cymetric:ci-layer-cache cache-to: type=registry,ref=ghcr.io/cyclus/cymetric_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cymetric:ci-layer-cache,mode=max tags: ghcr.io/cyclus/cymetric_${{ matrix.ubuntu_versions }}_${{ matrix.pkg_mgr }}/cymetric:${{ env.tag }}