mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
stop being stupid (not really)
This commit is contained in:
parent
961ae4abed
commit
f0b340c00d
17
.github/workflows/test.yaml
vendored
17
.github/workflows/test.yaml
vendored
@ -1,17 +0,0 @@
|
||||
name: dotfiles
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
void:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.9.1
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- uses: actions/checkout@v2
|
||||
- name: Pull docker image
|
||||
run: docker-compose pull
|
||||
|
||||
- name: Run installer on Void
|
||||
run: docker-compose up --build --exit-code-from dotfiles
|
23
Dockerfile
23
Dockerfile
@ -1,23 +0,0 @@
|
||||
FROM ghcr.io/void-linux/void-linux:latest-full-x86_64
|
||||
MAINTAINER starr-dusT <starrtyler88@gmail.com>
|
||||
|
||||
RUN xbps-install -Su xbps -y
|
||||
RUN xbps-install -S sudo bash -y
|
||||
|
||||
RUN useradd -ms /bin/bash tstarr
|
||||
RUN gpasswd -a tstarr wheel
|
||||
RUN echo 'tstarr ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||
|
||||
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
||||
RUN echo "en_US.UTF-8 UTF-8" > /etc/default/libc-locales
|
||||
RUN xbps-reconfigure -f glibc-locales
|
||||
|
||||
USER tstarr
|
||||
|
||||
RUN mkdir -p /home/tstarr/.local/share/chezmoi
|
||||
COPY --chown=tstarr:users . ./home/tstarr/.local/share/chezmoi
|
||||
WORKDIR /home/tstarr/.local/share/chezmoi
|
||||
|
||||
RUN locale
|
||||
|
||||
ENTRYPOINT ["sh", "docker-entrypoint.sh"]
|
@ -1,10 +0,0 @@
|
||||
version: "3"
|
||||
services:
|
||||
dotfiles:
|
||||
environment:
|
||||
- CI=1
|
||||
build: .
|
||||
container_name: dotfiles
|
||||
image: starr-dust/dotfiles
|
||||
volumes:
|
||||
- .:/usr/src/
|
@ -1,14 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# This script stands in for the void-initial scripts that bootstraps void with
|
||||
# some specific fixes to work within github workflows
|
||||
|
||||
# Install seed packages
|
||||
whoami
|
||||
sudo xpbs-install -Syu -y
|
||||
sudo xbps-install python3 python3-pip ansible -y
|
||||
sudo pip install pexpect github3.py
|
||||
|
||||
# Install roles and run playbook
|
||||
LANG=en_US.UTF-8 ansible-galaxy install -r /home/tstarr/.local/share/chezmoi/provision/requirements.yml
|
||||
cd /home/tstarr/.local/share/chezmoi/provision
|
||||
LANG=en_US.UTF-8 ansible-playbook setup.yml -i hosts
|
Loading…
x
Reference in New Issue
Block a user