clean useless folder and add build option for bitwarden docker image
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 13m4s
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 13m4s
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.tryton.geeraert.eu
|
||||
username: ${{ secrets.USERNAME_GITEA }}
|
||||
password: ${{ secrets.PASSWORD_GITEA }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: "{{defaultContext}}:bitwarden"
|
||||
push: true
|
||||
tags: gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:latest
|
||||
|
||||
|
||||
- name: Perform kubectl tasks
|
||||
uses: actions-hub/kubectl@master
|
||||
env:
|
||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||
with:
|
||||
args: apply -f .
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
@@ -67,19 +67,7 @@ spec:
|
||||
kubectl exec -it deploy/gitea-webserver -- su -c "/app/gitea/gitea dump -c /data/gitea/conf/app.ini -f /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").zip" git
|
||||
echo "Export done"
|
||||
']
|
||||
image: "bitnami/kubectl:1.21"
|
||||
volumeMounts:
|
||||
- name: gitea-data
|
||||
mountPath: /data
|
||||
- name: gitea-documents-backup
|
||||
mountPath: /backup
|
||||
volumes:
|
||||
- name: gitea-data
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-data
|
||||
- name: documents
|
||||
persistentVolumeClaim:
|
||||
claimName: gitea-documents-backup
|
||||
image: "bitnami/kubectl:latest"
|
||||
restartPolicy: Never
|
||||
|
||||
---
|
||||
|
||||
@@ -8,6 +8,7 @@ WORKDIR /usr/src/app
|
||||
RUN apt -y update
|
||||
RUN apt -y install npm
|
||||
RUN npm -y install -g @bitwarden/cli
|
||||
RUN bw config server https://bitwarden.tryton.geeraert.eu/
|
||||
RUN export BW_key=$(bw login valvankart@orange.fr Impreza555 --raw)
|
||||
|
||||
#COPY . .
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
namespace: nfs-provisioner-backup
|
||||
bases:
|
||||
- github.com/kubernetes-sigs/nfs-subdir-external-provisioner//deploy
|
||||
resources:
|
||||
- namespace.yaml
|
||||
patchesStrategicMerge:
|
||||
- patch_nfs_details.yaml
|
||||
@@ -1,4 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nfs-provisioner-backup
|
||||
@@ -1,10 +0,0 @@
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: nfs-backup-storage-intelligent
|
||||
parameters:
|
||||
pathPattern: "Backup/${.PVC.namespace}/${.PVC.name}"
|
||||
archiveOnDelete: "false"
|
||||
provisioner: k8s-sigs.io/nfs-subdir-external-provisioner
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
Submodule nfs-subdir-external-provisioner/nfs-subdir-external-provisioner deleted from 59a3ca2cd1
@@ -1,22 +0,0 @@
|
||||
# patch_nfs_details.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: nfs-client-provisioner
|
||||
name: nfs-client-provisioner
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: nfs-client-provisioner
|
||||
env:
|
||||
- name: NFS_SERVER
|
||||
value: 192.168.88.50
|
||||
- name: NFS_PATH
|
||||
value: /data/kubernetes/
|
||||
volumes:
|
||||
- name: nfs-client-root
|
||||
nfs:
|
||||
server: 192.168.88.50
|
||||
path: /data/kubernetes/
|
||||
Reference in New Issue
Block a user