mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 07:11:15 +00:00
chore: CI files update (#306)
* Update Dockerfile - Fix FromAsCasing - Copy `cmd` and `internal` directories only for backend * Export binaries from docker images * Create release with assets from workflow * Remove circleci config * fix chart publishing
This commit is contained in:
21
.github/workflows/chart.yml
vendored
21
.github/workflows/chart.yml
vendored
@@ -51,11 +51,8 @@ jobs:
|
||||
- name: Run chart-testing (install)
|
||||
run: ct install --config ct.yaml
|
||||
|
||||
- name: Run helm package charts
|
||||
run: |
|
||||
for chart in $(ct list-changed --config ct.yaml); do
|
||||
helm package $chart -d out
|
||||
done
|
||||
- name: Check chart packaging
|
||||
run: helm package deploy/helm
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -71,16 +68,8 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: helm/chart-testing-action@v2
|
||||
- name: Run helm package charts
|
||||
run: |
|
||||
for chart in $(ct list-changed --config ct.yaml); do
|
||||
helm package $chart -d out
|
||||
done
|
||||
- name: Package helm chart
|
||||
run: helm package deploy/helm
|
||||
|
||||
- name: Push chart to GHCR
|
||||
working-directory: out
|
||||
run: |
|
||||
for pkg in $(ls *.tgz); do
|
||||
helm push $pkg oci://ghcr.io/${{ github.repository_owner }}/charts
|
||||
done
|
||||
run: helm push wg-portal-*.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
|
||||
|
Reference in New Issue
Block a user