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 }}