Skip to content

Commit

Permalink
use well-defined directory to checkout cymetric
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibbelink committed Feb 9, 2024
1 parent 2808739 commit 6060c0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ 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' }}
id: build-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:ci-image-cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 6060c0e

Please sign in to comment.