Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mho/pipes #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/image-latest.yml
Original file line number Diff line number Diff line change
@@ -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 .
31 changes: 31 additions & 0 deletions .github/workflows/image-version.yml
Original file line number Diff line number Diff line change
@@ -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 .
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:buster

MAINTAINER Werner Beroux <[email protected]>

Expand All @@ -25,6 +25,7 @@ RUN apt-get update \
linuxlogo \
make \
nyancat \
libncurses6 \
perl \
rig \
sl \
Expand Down Expand Up @@ -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 \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it'd be nicer to have the latest released set somewhere or even auto-fetched.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that might be an option, but as the last release was 2018 Im not sure this will need much work

&& 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 \
Expand Down