diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 38c812c..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: CI - -on: [push, pull_request] - -env: - FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }} - FLICKR_USER_ID: ${{ secrets.FLICKR_USER_ID }} - UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }} - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - with: - submodules: true - - - name: Dump environment - run: env >> .env - - - name: Build image - run: docker-compose build - - - name: Show image info - run: docker images - - build: - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v1 - with: - submodules: true - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: '0.73.0' - extended: true - - - name: Setup node - uses: actions/setup-node@v1 - with: - node-version: '10.x' - - - uses: actions/cache@v1 - with: - path: $HOME/.npm - key: npm-${{ hashFiles('package-lock.json') }} - - - name: Install Dependencies - run: npm ci - - - name: Dump environment - run: env >> .env - - - name: Build site - run: ./scripts/release.sh - - - name: Run tests - run: ./scripts/test.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 31e0d4d..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy - -on: - push: - branches: - - master - -env: - FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }} - FLICKR_USER_ID: ${{ secrets.FLICKR_USER_ID }} - UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }} - -jobs: - build: - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v1 - with: - submodules: true - - - name: Dump environment - run: env >> .env - - - name: Build production container - run: docker build --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/theorangeone.net:latest . - - - name: Log into GitHub Docker Registry - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY%/*} --password-stdin - - - name: Push the Docker container - run: docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/theorangeone.net:latest diff --git a/README.md b/README.md index c759bc7..6a178a3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # My Website -![Deploy](https://github.com/RealOrangeOne/theorangeone.net/workflows/Deploy/badge.svg) -![CI](https://github.com/RealOrangeOne/theorangeone.net/workflows/CI/badge.svg) +![](https://git.theorangeone.net/repos/theorangeone.net/badges/master/pipeline.svg) https://theorangeone.net