48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Gitea Actions Demo
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set K8S context
|
|
uses: azure/k8s-set-context@v1
|
|
with:
|
|
method: kubeconfig
|
|
kubeconfig: ${{ secrets.KUBE_CFG }}
|
|
|
|
- name: Install Kubectl
|
|
uses: azure/setup-kubectl@v4
|
|
|
|
- uses: azure/k8s-create-secret@v2
|
|
with:
|
|
namespace: 'default'
|
|
secret-type: 'generic'
|
|
secret-name: basic-auth
|
|
data:
|
|
auth: ${{ secrets.BASIC_AUTH }}
|
|
|
|
# - name: Build docker image
|
|
# uses: https://code.thetadev.de/ThetaDev/action-kaniko@v1
|
|
# with:
|
|
# #registry: "10.42.1.152:3000"
|
|
# registry: "git.plop.in:80"
|
|
# image: "admin/test"
|
|
# username: admin
|
|
# password: ${{ secrets.PAT_TOKEN }}
|
|
# platforms: "linux/arm64"
|
|
# extra_args: "--insecure"
|
|
#
|
|
# - name: Build docker image
|
|
# uses: aevea/action-kaniko@master
|
|
# with:
|
|
# registry: "git.plop.in"
|
|
# image: admin/test
|
|
# username: admin
|
|
# password: ${{ secrets.PAT_TOKEN }}
|
|
# #extra_args: "--insecure --insecure-registry git.plop.in"
|
|
# extra_args: "--insecure"
|