From 9872bbc68fe53f4cdd27102fd6362aeb5605d9bd Mon Sep 17 00:00:00 2001
From: Nicholas Earl <contact@nicholasearl.me>
Date: Thu, 19 Oct 2023 12:36:24 -0500
Subject: [PATCH] Preemptive env export setting

---
 .github/workflows/build.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 864afba..268737d 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -23,6 +23,12 @@ jobs:
     - name: Checkout files in repo
       uses: actions/checkout@main
 
+    - name: Export variables for image
+      run: |
+        ls -lrt
+        echo "export CDS_API_KEY=${{ secrets.CDS_API_KEY }}" >> postBuild
+        less postBuild
+
     - name: Build and push the image to quay.io
       uses: jupyterhub/repo2docker-action@master
       with:
@@ -44,12 +50,6 @@ jobs:
       env:
         CDS_API_KEY: ${{ secrets.CDS_API_KEY }}
 
-    - name: Export variables for image
-      run: |
-        ls -lrt
-        echo "export CDS_API_KEY=${{ secrets.CDS_API_KEY }}" >> postBuild
-        less postBuild
-
 
     # Lets us monitor disks getting full as images get bigger over time
     - name: Show how much disk space is left