diff --git a/.github/workflows/image-latest.yml b/.github/workflows/image-latest.yml new file mode 100644 index 0000000..22b9047 --- /dev/null +++ b/.github/workflows/image-latest.yml @@ -0,0 +1,25 @@ +name: build our image for latest + +on: + push: + branches: master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v2 + - name: install buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v3 + with: + version: latest + qemu-version: latest + - name: login to docker hub + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + - name: build the image + run: | + docker buildx build --push \ + --tag wernight/docker-funbox:latest \ + --platform linux/amd64,linux/arm64,linux/arm/v7 . diff --git a/.github/workflows/image-version.yml b/.github/workflows/image-version.yml new file mode 100644 index 0000000..d5109a4 --- /dev/null +++ b/.github/workflows/image-version.yml @@ -0,0 +1,31 @@ +name: build our image for a tagged version + +on: + push: + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v2 + - name: install buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v3 + with: + version: latest + qemu-version: latest + - name: Prepare + id: prepare + run: | + VERSION=${GITHUB_REF#refs/tags/v} + echo ::set-output name=version::${VERSION} + - name: login to docker hub + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + - name: build the image + run: | + docker buildx build --push \ + --tag wernight/docker-funbox:latest \ + --platform linux/amd64,linux/arm64,linux/arm/v7 . diff --git a/Dockerfile b/Dockerfile index 6215750..9a6ce68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:jessie +FROM debian:buster MAINTAINER Werner Beroux @@ -25,6 +25,7 @@ RUN apt-get update \ linuxlogo \ make \ nyancat \ + libncurses6 \ perl \ rig \ sl \ @@ -53,8 +54,10 @@ RUN apt-get update \ && chmod +x /usr/local/bin/falling-hearts \ && echo "Install pipes" \ - && curl -L https://gist.githubusercontent.com/livibetter/4689307/raw/949e43fe2962c2c97c8b1d974ff93dd053d9bd37/pipes.sh -o /usr/local/bin/pipes \ - && chmod +x /usr/local/bin/pipes \ + && curl -L https://github.com/pipeseroni/pipes.sh/archive/v1.3.0.tar.gz -o pipes-v1.3.0.tar.gz \ + && tar -zxvf pipes-v1.3.0.tar.gz \ + && cd pipes.sh-1.3.0 && make install \ + && ln -s /usr/local/bin/pipes.sh /usr/local/bin/pipes \ && echo "Clean-up" \ && apt-get clean \