new cicd
This commit is contained in:
1 parent
9c70c83eec
commit
dcc4415d8e
2 files changed
+37
-21
No files matched your search
@@ -0,0 +1,37 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: rocky-10
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install dependencies and build
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@11.0.0 --activate
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm run build
|
||||
|
||||
- name: Create release archive
|
||||
run: tar -czf dist.tar.gz -C build .
|
||||
|
||||
- name: Create release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
server_url: ${{ gitea.server_url }}
|
||||
tag_name: ${{ gitea.ref_name }}
|
||||
name: ${{ gitea.ref_name }}
|
||||
files: dist.tar.gz
|
||||
Vendored
-21
@@ -1,21 +0,0 @@
|
||||
def domain = "www.mtps.pl"
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'pnpm install'
|
||||
sh 'pnpm run build'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'build/*', fingerprint: true
|
||||
build job: 'ansible/deploy/static', parameters: [[$class: 'StringParameterValue', name: 'domain', value: 'doopsko']]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user