Skip to content

Commit 6bbcf75

Browse files
committed
Migrate Strap to GitHub Pages
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.
1 parent 6fb6a8a commit 6bbcf75

25 files changed

+879
-885
lines changed

.github/codeql.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,3 @@ updates:
1111
github-actions:
1212
patterns:
1313
- "*"
14-
15-
- package-ecosystem: bundler
16-
directory: /
17-
schedule:
18-
interval: daily
19-
time: "07:30"
20-
timezone: "Europe/London"
21-
allow:
22-
- dependency-type: all
23-
groups:
24-
bundler:
25-
patterns:
26-
- "*"
27-
28-
- package-ecosystem: "docker"
29-
directory: "/"
30-
schedule:
31-
interval: daily
32-
time: "08:00"
33-
timezone: "Europe/London"
34-
groups:
35-
docker:
36-
patterns:
37-
- "*"

.github/workflows/codeql.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 3 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
- name: Use newer Xcode
4848
run: sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
4949

50-
- run: bin/strap.sh
50+
- run: ./strap.sh
5151
env:
5252
STRAP_CI: 1
5353
STRAP_DEBUG: 1
5454

55-
- name: Rerun bin/strap.sh
56-
run: bin/strap.sh
55+
- name: Rerun ./strap.sh
56+
run: ./strap.sh
5757
env:
5858
STRAP_CI: 1
5959

@@ -78,64 +78,3 @@ jobs:
7878
- run: brew install --cask orka
7979

8080
- run: brew install --formula xz
81-
82-
docker:
83-
runs-on: ubuntu-latest
84-
steps:
85-
- name: Set up Git repository
86-
uses: actions/checkout@v4
87-
88-
- name: Set RUBY_VERSION
89-
run: |
90-
set -xeuo pipefail
91-
92-
RUBY_VERSION=$(cat .ruby-version)
93-
echo "RUBY_VERSION=${RUBY_VERSION}" >> "${GITHUB_ENV}"
94-
95-
- uses: docker/setup-buildx-action@v3
96-
97-
- name: Login to GitHub Packages
98-
uses: docker/login-action@v3
99-
with:
100-
registry: ghcr.io
101-
username: mikemcquaid
102-
password: ${{ secrets.GITHUB_TOKEN }}
103-
104-
# We don't give Dependabot access to tokens.
105-
- if: github.actor != 'dependabot[bot]'
106-
name: Login to Docker Hub
107-
uses: docker/login-action@v3
108-
with:
109-
username: mikemcquaid
110-
password: ${{ secrets.DOCKER_TOKEN }}
111-
112-
# We don't give Dependabot access to tokens.
113-
- if: github.actor != 'dependabot[bot]'
114-
name: Login to DigitalOcean
115-
uses: digitalocean/action-doctl@v2
116-
with:
117-
token: ${{ secrets.DIGITAL_OCEAN_TOKEN }}
118-
119-
# We don't give Dependabot access to tokens.
120-
- if: github.actor != 'dependabot[bot]'
121-
run: doctl registry login --expiry-seconds 300
122-
123-
# We don't give Dependabot access to tokens.
124-
- if: github.actor != 'dependabot[bot]'
125-
run: doctl registry garbage-collection start --include-untagged-manifests --force
126-
127-
- uses: docker/build-push-action@v6
128-
with:
129-
push: ${{ github.ref == 'refs/heads/main' }}
130-
tags: |
131-
mikemcquaid/strap:latest
132-
mikemcquaid/strap:main
133-
mikemcquaid/strap:master
134-
ghcr.io/mikemcquaid/strap:latest
135-
ghcr.io/mikemcquaid/strap:main
136-
ghcr.io/mikemcquaid/strap:master
137-
registry.digitalocean.com/mikemcquaid/strap:latest
138-
cache-from: type=gha
139-
cache-to: type=gha,mode=max
140-
build-args: |
141-
RUBY_VERSION=${{ env.RUBY_VERSION }}

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/.env
21
/.bundle/
3-
/.vagrant/
4-
/bin/*
5-
!/bin/strap.sh
2+
/bin/
63
/vendor/
7-
Vagrantfile
8-
strap.sh
4+
/_site/
5+
/Gemfile.lock
6+
/.jekyll-metadata

.rubocop.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
strap.mikemcquaid.com

Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

Gemfile

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
# frozen_string_literal: true
2-
31
source "https://rubygems.org"
42

53
ruby file: ".ruby-version"
64

7-
gem "activesupport"
8-
gem "faraday-retry"
9-
gem "octokit"
10-
gem "omniauth-github"
11-
gem "puma"
12-
gem "sinatra"
5+
gem "github-pages", group: :jekyll_plugins
136

147
group :development do
15-
gem "guard"
16-
gem "guard-process"
17-
gem "rubocop"
8+
gem "webrick"
9+
end
10+
11+
group :test do
12+
gem "html-proofer"
13+
gem "rake"
1814
end

0 commit comments

Comments
 (0)