diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..9bd7353 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1 @@ +name: CIon: pull_request: branches: - mainjobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: '14' - name: Install dependencies run: npm install - name: Run tests run: npm test diff --git a/SOLUTION b/SOLUTION index 0e969ab..07c11a0 100644 --- a/SOLUTION +++ b/SOLUTION @@ -1,3 +1 @@ - << Change this line. The secret must be placed in the first line - -# Good Luck! \ No newline at end of file +<814c5723c21e7e90a3eae36c8df3c513> diff --git a/mySolution.sh b/mySolution.sh index e69de29..93cc676 100644 --- a/mySolution.sh +++ b/mySolution.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Download the file +wget https://exit-zero-academy.github.io/DevOpsTheHardWayAssets/linux_project/secretGenerator.tar.gz + +# Extract the file +tar -xvf secretGenerator.tar.gz + +# Navigate into the extracted directory +cd src + +# Create the directory 'secretDir' if it does not exist +mkdir -p secretDir + +# Make sure the script is executable +chmod +x generateSecret.sh + +# Generate the secret +/bin/bash generateSecret.sh