feat: checkout subpath

This commit is contained in:
ange 2025-02-02 00:54:01 +00:00
parent 0a170871ad
commit 33b6485547
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 5 additions and 10 deletions

View File

@ -6,11 +6,9 @@ on:
jobs:
build:
runs-on: debian
defaults:
run:
working-directory: dialer
steps:
- uses: actions/checkout@v1
subpath: dialer/
- uses: icing/flutter@test
- uses: actions/upload-artifact@v1
with:

View File

@ -1,16 +1,14 @@
on:
push:
paths:
- website/**
#paths:
# - website/**
jobs:
deploy:
runs-on: debian
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v1
subpath: website/
- name: setup env
run: |
. ./.env || true
@ -29,10 +27,9 @@ jobs:
- uses: actions/kaniko@v1
with:
password: "${{ secrets.PKGRW }}"
dockerfile: website/Dockerfile
dockerfile: Dockerfile
- uses: actions/k8sdeploy@v1
with:
kubeconfig: "${{ secrets.K8S }}"
registry_password: "${{ secrets.PKGRW }}"
workdir: website