generated from Seekra/repository-template
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aadd1434c0
|
||
|
|
ae438351e7
|
||
|
|
e2e064008a
|
||
|
|
bedadf1d12
|
||
|
|
0713d6827e
|
@@ -0,0 +1,37 @@
|
||||
name: Deploy on production
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy on production
|
||||
|
||||
runs-on: node-minio
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set alias
|
||||
run: |
|
||||
mc alias set minio "${{ vars.S3_PROD_URL }}" "${{ secrets.S3_PROD_ACCESS_KEY }}" "${{ secrets.S3_PROD_SECRET_KEY }}"
|
||||
|
||||
- name: Upload assets to MinIO
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
BUCKET="${{ vars.S3_PROD_BUCKET_NAME }}"
|
||||
BUILD_ID=$(date -u +%Y-%m-%d)-$(git rev-parse --short HEAD)
|
||||
|
||||
echo "Build ID: $BUILD_ID"
|
||||
|
||||
mkdir -p ./src
|
||||
|
||||
mc cp --recursive ./src/ "minio/$BUCKET/builds/$BUILD_ID"
|
||||
echo "Copied files successfully"
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
# ------------------------------------------------ SUBJECT AREA
|
||||
# ---------------------------------------------------------------------- DETAIL AREA
|
||||
|
||||
# Please enter a subject that is not longer than 50 characters.
|
||||
# If you enter a detailed description, each line should not be longer
|
||||
# than 72 characters. Break the line as soon as you reach this limit.
|
||||
@@ -1,3 +1,7 @@
|
||||
# repository-template
|
||||
|
||||
The template for repositories
|
||||
The template for repositories
|
||||
|
||||
## Setup
|
||||
|
||||
Please execute the setup script in `scripts/` for your platform when cloning the repository.
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
# Copyright 2026 Seekra
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
git config --local commit.template .gitmessage
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Copyright 2026 Seekra
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
git config --local commit.template .gitmessage
|
||||
Reference in New Issue
Block a user