1
Fork 0

Remove old CI config

This commit is contained in:
Jake Howard 2020-10-09 21:46:20 +01:00
parent 582425d703
commit 86dff22e02
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 1 additions and 95 deletions

View file

@ -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

View file

@ -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

View file

@ -1,6 +1,5 @@
# My Website # My Website
![Deploy](https://github.com/RealOrangeOne/theorangeone.net/workflows/Deploy/badge.svg) ![](https://git.theorangeone.net/repos/theorangeone.net/badges/master/pipeline.svg)
![CI](https://github.com/RealOrangeOne/theorangeone.net/workflows/CI/badge.svg)
https://theorangeone.net https://theorangeone.net