From 4ab075db3a1c4a30c9541ec486fd9b9c674e6163 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Thu, 12 Oct 2023 21:50:22 -0400 Subject: [PATCH] use gha for release --- .github/workflows/release.yml | 2 ++ Makefile | 10 ++++------ README.md | 4 +++- seashell.yaml | 2 +- version.txt | 1 - 5 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 version.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfe5140..b99e7a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,4 +35,6 @@ jobs: platforms: linux/amd64,linux/arm64 tags: | ghcr.io/puckpuck/seashell:${{ github.event.release.tag_name }} + ghcr.io/puckpuck/seashell:latest puckpuck/seashell:${{ github.event.release.tag_name }} + puckpuck/seashell:latest diff --git a/Makefile b/Makefile index e5b597a..10423b6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=$(shell cat version.txt) +VERSION?=dev build: docker build -t puckpuck/seashell:$(VERSION) . @@ -6,10 +6,8 @@ build: push: build docker push puckpuck/seashell:$(VERSION) -push-all: build - docker push puckpuck/seashell:$(VERSION) - docker tag puckpuck/seashell:$(VERSION) puckpuck/seashell:latest - docker push puckpuck/seashell:latest - deploy: kubectl apply -f seashell.yaml + +run: build + docker run -it --rm puckpuck/seashell:$(VERSION) /bin/bash diff --git a/README.md b/README.md index 7a0b5ad..ce4f3ef 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,14 @@ You are encouraged to modify the ClusterRole to restrict to specific resources b ## Utilities The image is based on [jonlabelle/network-tools](https://github.com/jonlabelle/docker-network-tools). -Uses `9d41292d4bc3` digest published on: 2023-01-21. Several utilities are installed including: - telnet - wget - curl - awk - jq +- yq +- jless - git - tcpdump - dig @@ -25,6 +26,7 @@ Several utilities are installed including: - ping - traceroute - netstat +- stress - ... and more ## Accessing the Kubernetes API and Kubelet diff --git a/seashell.yaml b/seashell.yaml index c8707a3..2048e7c 100644 --- a/seashell.yaml +++ b/seashell.yaml @@ -63,7 +63,7 @@ spec: serviceAccountName: seashell containers: - name: seashell - image: puckpuck/seashell:0.1 + image: puckpuck/seashell:latest env: - name: NODE_NAME valueFrom: diff --git a/version.txt b/version.txt deleted file mode 100644 index b123147..0000000 --- a/version.txt +++ /dev/null @@ -1 +0,0 @@ -1.1 \ No newline at end of file