This commit is contained in:
@@ -5,11 +5,6 @@ on: [push]
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
# container:
|
||||
# image: bitnami/kubectl:1.21
|
||||
# options: --cpus 1
|
||||
# env:
|
||||
# KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
@@ -18,14 +13,12 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
# - run: kubectl get ns
|
||||
- name: try github actions
|
||||
- name: Perform kubectl tasks
|
||||
uses: actions-hub/kubectl@master
|
||||
env:
|
||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||
with:
|
||||
# args: get pods
|
||||
args: apply -f echo.kube.yaml
|
||||
args: apply -k .
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
|
||||
Reference in New Issue
Block a user