Skip to content

Commit 9e0aa51

Browse files
committed
Dependabot + workflow updates.
1 parent 49dd2b7 commit 9e0aa51

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
# Keep GitHub Actions (in .github/workflows) up to date
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # this is correct even if workflows are in .github/workflows
6+
schedule:
7+
interval: "weekly"
8+
9+
# Keep Dockerfile base images (in repo root) up to date
10+
- package-ecosystem: "docker"
11+
directory: "/" # root directory where your Dockerfiles live
12+
schedule:
13+
interval: "weekly"

.github/workflows/docker-jupyter-hub.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,11 @@ jobs:
5454
with:
5555
images: cogstacksystems/jupyter-hub:latest
5656

57-
- uses: actions/checkout@v3
5857
- name: Get and set release version env var
5958
id: release_version
6059
run: |
6160
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
62-
echo "::set-output name=RELEASE_VERSION::$RELEASE_VERSION"
63-
64-
- name: set docker release tag name
65-
id: set_release_version
66-
if: ${{ github.ref == 'refs/heads/main' }}
67-
run: echo "RELEASE_VERSION=${RELEASE_VERSION#?}" >> $GITHUB_ENV
61+
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_OUTPUT
6862
6963
- name: set docker release tag name
7064
id: set_release_version_latest
@@ -79,7 +73,5 @@ jobs:
7973
run: |
8074
docker build --platform linux/${{ matrix.platform }} -t cogstacksystems/jupyter-hub:$RELEASE_VERSION-${{ matrix.platform }} -f Dockerfile_hub --build-arg CPU_ARCHITECTURE=${{ matrix.platform }} .
8175
docker push cogstacksystems/jupyter-hub:$RELEASE_VERSION-${{ matrix.platform }}
82-
echo "::set-output name=digest::$(docker images --digests --format '{{.Digest}}' cogstacksystems/jupyter-hub | head -n 1)" >> $GITHUB_OUTPUT
83-
84-
- name: Image digest
85-
run: echo ${{ steps.docker_build.outputs.digest }}
76+
DIGEST=$(docker images --digests --format '{{.Digest}}' cogstacksystems/jupyter-hub | head -n 1)
77+
echo "digest=$DIGEST" >> $GITHUB_OUTPUT

.github/workflows/submodule_sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
git config --global user.name 'Git bot'
4444
git config --global user.email 'bot@noreply.github.com'
4545
git remote set-url origin https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}
46-
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
46+
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"

0 commit comments

Comments
 (0)