mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
Fix: CICD Pipeline for release plugin (#201)
* testing-github-piprline * fix pipeline * bump version
This commit is contained in:
parent
5e97c52303
commit
7dd92ab4ad
2 changed files with 13 additions and 32 deletions
43
.github/workflows/publish-release.yaml
vendored
43
.github/workflows/publish-release.yaml
vendored
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Variable Gathering
|
- name: Variable Gathering
|
||||||
id: gathervars
|
id: gathervars
|
||||||
|
|
@ -33,13 +33,13 @@ jobs:
|
||||||
echo "NOT_PREVIOUSLY_PUBLISHED=$NOT_PREVIOUSLY_PUBLISHED" >> $GITHUB_ENV
|
echo "NOT_PREVIOUSLY_PUBLISHED=$NOT_PREVIOUSLY_PUBLISHED" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
|
@ -47,7 +47,7 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker Image
|
- name: Build and push Docker Image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v6
|
||||||
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
||||||
with:
|
with:
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
- name: Extract build out of docker image
|
- name: Extract build out of docker image
|
||||||
uses: shrink/actions-docker-extract@v2
|
uses: shrink/actions-docker-extract@v3
|
||||||
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
||||||
id: extract
|
id: extract
|
||||||
with:
|
with:
|
||||||
|
|
@ -73,33 +73,14 @@ jobs:
|
||||||
cd "${{ steps.extract.outputs.destination }}"
|
cd "${{ steps.extract.outputs.destination }}"
|
||||||
7z a headscale-ui.zip web
|
7z a headscale-ui.zip web
|
||||||
|
|
||||||
- name: Create Draft Release
|
- name: Create Release
|
||||||
id: create_release
|
uses: softprops/action-gh-release@v2
|
||||||
uses: actions/create-release@v1
|
|
||||||
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
release_name: headscale-ui
|
name: headscale-ui
|
||||||
draft: true
|
files: ${{ steps.extract.outputs.destination }}/headscale-ui.zip
|
||||||
prerelease: false
|
generate_release_notes: true
|
||||||
|
make_latest: true
|
||||||
- name: upload asset to releases
|
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
|
||||||
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ${{ steps.extract.outputs.destination }}/headscale-ui.zip
|
|
||||||
asset_name: headscale-ui.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
|
|
||||||
- name: publish release
|
|
||||||
uses: eregon/publish-release@v1
|
|
||||||
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
release_id: ${{ steps.create_release.outputs.id }}
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "headscale-ui",
|
"name": "headscale-ui",
|
||||||
"version": "2025.05.22",
|
"version": "2025.05.23",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev --port 8080 --host 0.0.0.0",
|
"dev": "vite dev --port 8080 --host 0.0.0.0",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue