Skip to content

Commit 0db43fd

Browse files
adrianjhuntersliedig
authored andcommitted
feat(gitea): Add Gitea Actions and Workflow Configuration
- Added action for reusable build env as composite action - Added build pipeline with path-based filtering for deployment jobs
1 parent 81666f0 commit 0db43fd

5 files changed

Lines changed: 643 additions & 11 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: 'Configure Build Environment'
2+
description: 'A reusable action that configures the build environment'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- run: echo "**** Setup Python ****"
8+
- name: Setup Python
9+
uses: actions/setup-python@v6
10+
with:
11+
python-version: ${{ env.PYTHON_VERSION }}
12+
- run: python --version
13+
14+
- run: echo "**** Install Python based tooling ****"
15+
- name: Install Python based tooling
16+
run: pip install cfn-lint cfn-lint-serverless
17+
18+
- name: Setup NodeJS
19+
uses: actions/setup-node@v5
20+
with:
21+
node-version: ${{ env.NODE_VERSION }}
22+
- run: 'echo "NodeJS version: $(node --version)"'
23+
24+
- run: echo "**** Setup uv ****"
25+
- uses: astral-sh/setup-uv@v6
26+
- run: uv --version
27+
28+
- run: echo "**** Install application dependencies ****"
29+
- name: Install application dependencies
30+
run: |
31+
uv export --no-hashes --format=requirements-txt --output-file=src/requirements.txt
32+
uv sync --extra dev
33+
working-directory: ${{ gitea.workspace }}/${{ env.SERVICE_FOLDER }}
34+
35+
- run: echo "**** Install AWS CLI ****"
36+
- name: Install AWS CLI
37+
run: |
38+
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
39+
unzip -q awscliv2.zip
40+
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update > /dev/null 2>&1
41+
aws --version
42+
43+
- run: echo "**** Install SAM CLI ****"
44+
- name: Install SAM CLI
45+
uses: aws-actions/setup-sam@v2
46+
with:
47+
use-installer: true
48+
- run: sam --version

0 commit comments

Comments
 (0)