Skip to content

Commit

Permalink
Merge pull request #9 from shaneknapp/reading-instructions-helps-lol
Browse files Browse the repository at this point in the history
i think this will fix it
  • Loading branch information
shaneknapp authored Jun 10, 2024
2 parents ba3d347 + df89ed0 commit 91ff8e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,17 @@ jobs:
- name: Checkout files in repo
uses: actions/checkout@main

- name: can we even see the secrets?
- name: Log in to GAR
uses: docker/login-action@v1
with:
S: $ {{ secrets.GAR_SECRET_KEY }}
run: |
echo "can we access the secrets..."
if [ -z ${S} ]; then echo "nope!"; else echo "yep!"; fi
registry: us-central1-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_SECRET_KEY }}

- name: Build the image and push to artifact registry if not a pull request
- name: Build the image and push to artifact registry
uses: jupyterhub/repo2docker-action@master
with:
# Make sure username & password/token pair matches your registry credentials
DOCKER_USERNAME: _json_key
DOCKER_PASSWORD: $ {{ secrets.GAR_SECRET_KEY }}
DOCKER_REGISTRY: us-central1-docker.pkg.dev
IMAGE_NAME: ucb-datahub-2018/user-images/logodev-user-image
# Disable pushing a 'latest' tag, as this often just causes confusion
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
# https://github.com/actions/virtual-environments/issues/2606#issuecomment-772683150
# and https://github.com/easimon/maximize-build-space/blob/b4d02c14493a9653fe7af06cc89ca5298071c66e/action.yml#L104
# This gives us a total of about 52G of free space, which should be enough for now
- name: cleanup disk space
- name: Cleanup disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
df -h
- name: Checkout files in repo
uses: actions/checkout@main

- name: Build the image and push to artifact registry if not a pull request
- name: Build and test the image
uses: jupyterhub/repo2docker-action@master
with:
# Make sure username & password/token pair matches your registry credentials
Expand Down

0 comments on commit 91ff8e5

Please sign in to comment.