diff options
| author | mo khan <mo.khan@gmail.com> | 2019-12-19 21:59:10 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-02-06 10:37:35 -0700 |
| commit | 519b7ed3fb6dc7f70f50a84fee400093c9724072 (patch) | |
| tree | cf122ff968f39420a43ac8080def6c2129d07de4 | |
| parent | 26cdfebf31f024e331429e482b1ee342708888e3 (diff) | |
Build st in docker
| -rw-r--r-- | .github/workflows/build.yml | 16 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Dockerfile | 13 | ||||
| -rw-r--r-- | patch.sh | 9 |
4 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..799750a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Docker Build +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: build + run: | + docker login docker.pkg.github.com -u mokhan -p ${{ secrets.GITHUB_TOKEN }} + docker pull docker.pkg.github.com/mokhan/mst/mokha-st:latest || true + docker build --cache-from docker.pkg.github.com/mokhan/mst/mokha-st:latest -t docker.pkg.github.com/mokhan/mst/mokha-st:latest . + docker push docker.pkg.github.com/mokhan/mst/mokha-st:latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2ce2edf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM fedora:latest +RUN yum update -y +RUN yum install -y git wget tree man which ruby-devel rpm-build libffi-devel +RUN yum group install -y "Development Tools" +RUN yum group install -y "X Software Development" +RUN gem install --no-document fpm +RUN git clone https://git.suckless.org/st /root/st +WORKDIR /root/st +COPY patch.sh patch.sh +RUN sh patch.sh +RUN make clean install +WORKDIR /root/ +RUN fpm -s dir -t rpm -n mokha-st -v '0.8.2' /usr/local/bin/st /usr/local/share/man/man1/st.1 diff --git a/patch.sh b/patch.sh new file mode 100644 index 0000000..715d702 --- /dev/null +++ b/patch.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +wget https://st.suckless.org/patches/boxdraw/st-boxdraw_v2-0.8.2.diff +wget https://st.suckless.org/patches/newterm/st-newterm-0.8.2.diff +wget https://st.suckless.org/patches/nordtheme/st-nordtheme-0.8.2.diff +wget https://st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff +wget https://st.suckless.org/patches/clipboard/st-clipboard-20180309-c5ba9c0.diff +git apply ./*.diff +rm ./*.diff |
