diff --git a/.github/workflows/dockerhub-publish.yaml b/.github/workflows/dockerhub-publish.yaml index d4f9f4b..7f77e0d 100644 --- a/.github/workflows/dockerhub-publish.yaml +++ b/.github/workflows/dockerhub-publish.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: docker/login-action@v3 + - uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -23,6 +23,6 @@ jobs: uses: docker/build-push-action@v6 with: push: true - tags: - - "${{ secrets.DOCKERHUB_USERNAME }}/dotfiles:latest" - - "${{ secrets.DOCKERHUB_USERNAME }}/dotfiles:${GITHUB_SHA:0:7}" + tags: | + "${{ secrets.DOCKERHUB_USERNAME }}/dotfiles:latest" + "${{ secrets.DOCKERHUB_USERNAME }}/dotfiles:${GITHUB_SHA:0:7}" diff --git a/Dockerfile b/Dockerfile index f8f95f9..c5679f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ -FROM ubuntu:latest AS base -RUN apt-get update \ - && apt-get install -y \ - sudo git fontconfig tar wget rustup gcc unzip curl \ - zsh tmux neovim fzf git-delta eza bat ripgrep fd-find neofetch \ - && apt-get clean && rm -rf /var/lib/apt/lists/* +FROM alpine:latest AS base +RUN apk add zsh unzip tar RUN useradd --create-home --groups sudo --shell /usr/bin/zsh geloman \ && echo "geloman ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/geloman \ && chmod 0440 /etc/sudoers.d/geloman -FROM base AS final -USER geloman -WORKDIR /home/geloman -COPY . .dotfiles -RUN ./.dotfiles/setup.sh -ENTRYPOINT ["zsh"] +# FROM base AS setup +# USER geloman +# WORKDIR /home/geloman +# COPY . . +# RUN ./install.sh + +# FROM setup AS final +# USER geloman +# WORKDIR /home/geloman +# ENTRYPOINT ["zsh"]