-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
59 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "dotload", | ||
"image": "mcr.microsoft.com/devcontainers/base:jammy", | ||
"features": { | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/eitsupi/devcontainer-features/go-task:1": {}, | ||
"ghcr.io/jungaretti/features/make:1": {} | ||
}, | ||
"name": "dotload", | ||
"image": "mcr.microsoft.com/devcontainers/base:jammy", | ||
"features": { | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/eitsupi/devcontainer-features/go-task:1": {}, | ||
"ghcr.io/jungaretti/features/make:1": {} | ||
}, | ||
|
||
"privileged": true, | ||
"privileged": true, | ||
|
||
"onCreateCommand": "echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections && sudo apt update && sudo apt install devscripts debhelper -y", | ||
|
||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"resmon.show.battery": false, | ||
"resmon.show.cpufreq": false | ||
}, | ||
"extensions": [ | ||
"EditorConfig.EditorConfig", | ||
"DavidAnson.vscode-markdownlint", | ||
"mads-hartmann.bash-ide-vscode", | ||
"docsmsft.docs-yaml", | ||
"shardulm94.trailing-spaces", | ||
"me-dutour-mathieu.vscode-github-actions", | ||
"redhat.vscode-yaml", | ||
"bierner.markdown-checkbox" | ||
] | ||
} | ||
} | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"resmon.show.battery": false, | ||
"resmon.show.cpufreq": false | ||
}, | ||
"extensions": [ | ||
"EditorConfig.EditorConfig", | ||
"DavidAnson.vscode-markdownlint", | ||
"mads-hartmann.bash-ide-vscode", | ||
"docsmsft.docs-yaml", | ||
"shardulm94.trailing-spaces", | ||
"me-dutour-mathieu.vscode-github-actions", | ||
"redhat.vscode-yaml", | ||
"bierner.markdown-checkbox" | ||
] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
docs: ['README.md', 'docs/*', 'dotload/man/*'] | ||
workflows: '.github/workflows/*' | ||
docs: ["README.md", "docs/*"] | ||
workflows: ".github/workflows/*" | ||
feature: | ||
- head-branch: ['^feature', 'feature'] | ||
- head-branch: ["^feature", "feature"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,121 +26,23 @@ jobs: | |
- name: 📥 Clone repository | ||
uses: actions/[email protected] | ||
|
||
- name: ⚙️ Install dependencies | ||
# Temporary disable packages caching feature. | ||
# uses: awalsh128/cache-apt-pkgs-action@latest | ||
# with: | ||
# packages: devscripts dput debhelper | ||
# version: 1.0 | ||
run: | | ||
echo "::group::Installing dependencies" | ||
sudo apt-get install devscripts dput debhelper -y | ||
echo "::endgroup::" | ||
- name: 🔐 Set up GPG key | ||
# GPG key for signing deb packages | ||
run: | | ||
echo "${{ secrets.PPA_GPG_KEY }}" | gpg --allow-secret-key-import --import --batch --yes | ||
- name: 🛠️ Build .deb package | ||
run: | | ||
EMAIL="[email protected]" | ||
FULLNAME="Okinea Dev" | ||
# GPG key to use | ||
key="2783259A7535F745" | ||
# Get version from tag | ||
tag="${{ github.ref_name }}" | ||
release_version=$(echo "$tag" | sed 's/v//g') | ||
changes="You can view the changes at this link - https://github.com/cli-stuff/dotload/releases/tag/$tag" | ||
# ugly syntax | ||
echo "::group::Building deb-package" | ||
make deb-package ARGS=" \ | ||
--workflow \ | ||
--version '$release_version' \ | ||
--fullname '$FULLNAME' \ | ||
--email '$EMAIL' \ | ||
--changes '$changes' \ | ||
--passphrase '${{ secrets.PPA_GPG_KEY_PASSPHRASE }}' \ | ||
--key '$key'" | ||
echo "::endgroup::" | ||
- name: 🛠️ Build Snap package | ||
run: | | ||
# Install `lxd` | ||
echo "::group::Installing `lxd`" | ||
sudo iptables -P FORWARD ACCEPT | ||
sudo snap install snapcraft --classic | ||
sudo usermod -aG lxd $USER | ||
sudo snap run lxd init --auto | ||
sudo snap run lxd waitready | ||
echo "::endgroup::" | ||
# Login | ||
export SNAPCRAFT_STORE_CREDENTIALS="${{ secrets.SNAPCRAFT_CREDENTIALS }}" | ||
# Get version from tag | ||
tag="${{ github.ref_name }}" | ||
release_version=$(echo "$tag" | sed 's/v//g') | ||
# Build snap package | ||
echo "::group::Building snap package" | ||
make snap-package ARGS="--workflow --version '$release_version'" | ||
echo "::endgroup::" | ||
- name: ✅ Attest artifacts | ||
uses: actions/[email protected] | ||
# Read: https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds | ||
with: | ||
subject-path: | | ||
dotload/bin/dotload | ||
dotload_*.deb | ||
dotload_*.snap | ||
- name: 🔏 Generate sha256sum for executable | ||
run: make checksum | ||
bin/dotload | ||
- name: ⬆️ Upload files to release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
dotload/bin/dotload | ||
dotload/bin/dotload.sha256 | ||
dotload_*.deb | ||
dotload_*.snap | ||
dotload_*.dsc | ||
dotload_*.tar.xz | ||
bin/dotload | ||
- name: 🍺 Bump Homebrew formula | ||
uses: mislav/bump-homebrew-formula-action@v3 | ||
with: | ||
formula-name: dotload | ||
homebrew-tap: okineadev/homebrew-dotload | ||
homebrew-tap: cli-stuff/homebrew-dotload | ||
env: | ||
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} | ||
|
||
- name: 📦 Upload package to Ubuntu PPA | ||
continue-on-error: true | ||
run: | | ||
echo "::group::Uploading deb-package to Ubuntu PPA" | ||
dput ppa:salumin/tools dotload_*_source.changes | ||
echo "::endgroup::" | ||
- name: 📦 Upload package to Snap Store | ||
continue-on-error: true | ||
run: | | ||
# Login | ||
export SNAPCRAFT_STORE_CREDENTIALS="${{ secrets.SNAPCRAFT_CREDENTIALS }}" | ||
echo "::group::Uploading snap-package to Snap Store" | ||
snapcraft upload --release=stable dotload_*_all.snap | ||
echo "::endgroup::" | ||
- name: 🧹 Clean | ||
run: | | ||
echo "### Done! :rocket:" >> $GITHUB_STEP_SUMMARY | ||
echo "::group::Cleaning" | ||
make clean | ||
echo "::endgroup::" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"printWidth": 120, | ||
"overrides": [ | ||
{ | ||
"files": "*.html", | ||
"options": { | ||
"tabWidth": 2 | ||
} | ||
}, | ||
{ | ||
"files": "*.yml", | ||
"options": { | ||
"tabWidth": 2 | ||
} | ||
}, | ||
{ | ||
"files": "*.json", | ||
"options": { | ||
"tabWidth": 2 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,4 @@ | |
If you notice a security issue with this tool, you can report it to me via email, Telegram, or Element: | ||
|
||
- **Email**: <[email protected]> | ||
- **Telegram**: <https://t.me/okineadev> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
version: '3' | ||
version: "3" | ||
|
||
tasks: | ||
clean: | ||
cmd: ./scripts/clean.sh | ||
|
||
install: | ||
cmd: ./scripts/install-from-source.sh | ||
|
||
uninstall: | ||
cmd: sudo rm "${PREFIX}/bin/dotload" | ||
|
||
build-deb: | ||
cmd: ./scripts/deb-package.sh {{.CLI_ARGS}} | ||
silent: true | ||
|
||
build-snap: | ||
cmd: ./scripts/snap-package.sh {{.CLI_ARGS}} | ||
|
||
generate-checksum: | ||
cmd: ./scripts/generate-checksum.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.