Skip to content

Commit

Permalink
Update GH action secret
Browse files Browse the repository at this point in the history
  • Loading branch information
matbun committed Nov 11, 2024
1 parent 106c093 commit 6eb76fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
workdir: ci
verb: call
# args: build-container --context=.. --dockerfile=../env-files/torch/Dockerfile publish
args: build-container --context=.. --dockerfile=../env-files/torch/Dockerfile test-n-publish --kubeconfig-str=env:{{ secrets.KUBECONFIG_INFN }}
args: build-container --context=.. --dockerfile=../env-files/torch/Dockerfile test-n-publish --kubeconfig-str='cmd:echo ${{ secrets.KUBECONFIG_INFN }}'
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
version: "latest"
7 changes: 6 additions & 1 deletion ci/src/main/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ async def publish(
# TODO: use annotated for args
) -> str:
"""Push container to registry"""
import datetime
tag = tag if tag else random.randrange(10 ** 8)
self.full_name = f"{registry}/{name}:{tag}"
return await self.container.publish(self.full_name)
return await (
self.container
.with_env_variable("CACHE", datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"))
.publish(self.full_name)
)

@function
async def test_hpc(
Expand Down

0 comments on commit 6eb76fe

Please sign in to comment.