-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup Dockerfile for repeatable dev-envs * adds action to push image * adds openssh-client * fetch github.com rsa key * fix * init submodules first * use --ssh to pass creds to clone submodules * update GH actions * Setup submodules outside * remove zprezto from modules * fix: do not run submodules if not necessary * adds ability to fix nushell path for vim * registry config * revert workflow * call it dev-env * multiarch builds * test multiarch setup * bump vimrc * use gh actions * adds build platform arm64/v8 * adds ability to install many at once
- Loading branch information
1 parent
a2f2a95
commit 0192869
Showing
8 changed files
with
97 additions
and
84 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vimrc/temp_dirs | ||
# Ingore the TS parsers as they're compiled against the target | ||
vimrc/plugged |
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,13 +1,46 @@ | ||
on: push | ||
env: | ||
IMAGE_NAME: flovilmart/dev-env | ||
jobs: | ||
build: | ||
runs-on: macos-11 | ||
docker: | ||
name: Docker build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
- uses: actions/checkout@v4 | ||
- name: Set up SSH | ||
uses: MrSquaare/ssh-setup-action@2d028b70b5e397cf8314c6eaea229a6c3e34977a # v3.1.0 | ||
with: | ||
host: github.com | ||
private-key: ${{ secrets.SSH_GITHUB_PPK }} | ||
private-key-name: github-ppk | ||
- name: Submodules | ||
run: sh ./install.sh submodules | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: 'arm64,arm' | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Setup vars | ||
run: | | ||
rm /usr/local/bin/aws | ||
rm /usr/local/bin/aws* | ||
rm /usr/local/bin/go | ||
rm /usr/local/bin/go* | ||
./install.sh all | ||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | ||
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') | ||
[ "$VERSION" == "main" ] && VERSION=latest | ||
echo VERSION=$VERSION >> "$GITHUB_ENV" | ||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
platforms: linux/amd64,linux/arm64,linux/arm64/v8 | ||
push: true | ||
ssh: default | ||
tags: | | ||
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VERSION }} |
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
Submodule .zprezto
deleted from
3f2145
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,16 @@ | ||
FROM alpine:edge | ||
|
||
RUN apk add tmux git neovim nushell starship curl bash openssh-client | ||
|
||
RUN mkdir -p ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | ||
RUN ln -sf /usr/bin/nvim /usr/bin/vi | ||
|
||
WORKDIR /root/src/flovilmart/dotfiles | ||
|
||
COPY . . | ||
|
||
RUN ./install.sh dotfiles nushell fix_nu_path tmux_plugins starship | ||
# Adds SSH keys to make sure we can clone submodules | ||
RUN --mount=type=ssh ./install.sh vim | ||
|
||
CMD nu | ||
Check warning on line 16 in Dockerfile GitHub Actions / Docker buildJSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals
|
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
Submodule vimrc
updated
9 files
+60 −10 | install.sh | |
+0 −4 | lua/flovilmart/init.lua | |
+4 −1 | plugin/after/cmp.lua | |
+6 −1 | plugin/after/codecompanion.lua | |
+8 −1 | plugin/after/debugger.lua | |
+4 −1 | plugin/after/lsp.lua | |
+9 −9 | plugin/after/styling.lua | |
+5 −1 | plugin/after/telescope.lua | |
+5 −0 | plugin/after/treesitter.lua |