Initial k9s web commit
Build k9s web container / Build image (push) Successful in 37s
Details
Build k9s web container / Build image (push) Successful in 37s
Details
This commit is contained in:
commit
bdbae8e683
|
@ -0,0 +1,30 @@
|
|||
name: Build k9s web container
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build image
|
||||
runs-on: ubuntu-latest
|
||||
container: git.namesny.com/cluster/act-runner:v1
|
||||
env:
|
||||
IMAGE_NAME: k9s-web
|
||||
REGISTRY: git.namesny.com
|
||||
REPO_OWNER: cluster
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.namesny.com
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- name: Build and push
|
||||
run: |
|
||||
TODAY=$(date +'%Y-%m-%d')
|
||||
docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${TODAY} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
|
||||
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${TODAY}
|
||||
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest
|
|
@ -0,0 +1,6 @@
|
|||
FROM tsl0922/ttyd:alpine
|
||||
|
||||
RUN apk add --no-cache kubectl k9s
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
CMD ["ttyd", "-W", "k9s"]
|
Loading…
Reference in New Issue