Skip to content

Commit

Permalink
Migrate Strap to GitHub Pages
Browse files Browse the repository at this point in the history
This drops some of the dynamic features but:
- I no longer want to pay for DigitalOcean out of my own pocket.
- Workbrew's Bootstrap feature does everything better than Strap does
  at this point.
  • Loading branch information
MikeMcQuaid committed Sep 3, 2024
1 parent 6fb6a8a commit b3eb3c6
Show file tree
Hide file tree
Showing 25 changed files with 883 additions and 891 deletions.
2 changes: 0 additions & 2 deletions .github/codeql.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,3 @@ updates:
github-actions:
patterns:
- "*"

- package-ecosystem: bundler
directory: /
schedule:
interval: daily
time: "07:30"
timezone: "Europe/London"
allow:
- dependency-type: all
groups:
bundler:
patterns:
- "*"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: daily
time: "08:00"
timezone: "Europe/London"
groups:
docker:
patterns:
- "*"
26 changes: 0 additions & 26 deletions .github/workflows/codeql.yml

This file was deleted.

67 changes: 3 additions & 64 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
- name: Use newer Xcode
run: sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer

- run: bin/strap.sh
- run: ./strap.sh
env:
STRAP_CI: 1
STRAP_DEBUG: 1

- name: Rerun bin/strap.sh
run: bin/strap.sh
- name: Rerun ./strap.sh
run: ./strap.sh
env:
STRAP_CI: 1

Expand All @@ -78,64 +78,3 @@ jobs:
- run: brew install --cask orka

- run: brew install --formula xz

docker:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4

- name: Set RUBY_VERSION
run: |
set -xeuo pipefail
RUBY_VERSION=$(cat .ruby-version)
echo "RUBY_VERSION=${RUBY_VERSION}" >> "${GITHUB_ENV}"
- uses: docker/setup-buildx-action@v3

- name: Login to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: mikemcquaid
password: ${{ secrets.GITHUB_TOKEN }}

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: mikemcquaid
password: ${{ secrets.DOCKER_TOKEN }}

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
name: Login to DigitalOcean
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITAL_OCEAN_TOKEN }}

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
run: doctl registry login --expiry-seconds 300

# We don't give Dependabot access to tokens.
- if: github.actor != 'dependabot[bot]'
run: doctl registry garbage-collection start --include-untagged-manifests --force

- uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
mikemcquaid/strap:latest
mikemcquaid/strap:main
mikemcquaid/strap:master
ghcr.io/mikemcquaid/strap:latest
ghcr.io/mikemcquaid/strap:main
ghcr.io/mikemcquaid/strap:master
registry.digitalocean.com/mikemcquaid/strap:latest
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
RUBY_VERSION=${{ env.RUBY_VERSION }}
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/.env
/.bundle/
/.vagrant/
/bin/*
!/bin/strap.sh
/bin/
/vendor/
Vagrantfile
strap.sh
/_site/
/Gemfile.lock
/.jekyll-metadata
27 changes: 0 additions & 27 deletions .rubocop.yml

This file was deleted.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
strap.mikemcquaid.com
22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

18 changes: 7 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
# frozen_string_literal: true

source "https://rubygems.org"

ruby file: ".ruby-version"

gem "activesupport"
gem "faraday-retry"
gem "octokit"
gem "omniauth-github"
gem "puma"
gem "sinatra"
gem "github-pages", group: :jekyll_plugins

group :development do
gem "guard"
gem "guard-process"
gem "rubocop"
gem "webrick"
end

group :test do
gem "html-proofer"
gem "rake"
end
Loading

0 comments on commit b3eb3c6

Please sign in to comment.