Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Repo is owned by Mulecode organization.
* @mulecode/rafael-bm
78 changes: 78 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Main

on:
push:
branches:
- main

jobs:

prepare_versioning:
name: Prepare Versioning
uses: mulecode/actions-workflow-templates/.github/workflows/workflow-versioning-prepare.yml@main
with:
configFilePath: vertere.yml

build:
name: Build and Publish docker images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine Changes
id: check_changes
run: |
FOLDER_PATH="docker/aws-python"
if git diff --quiet ${{ github.sha }}^! -- "$FOLDER_PATH"; then
echo "No changes detected in $FOLDER_PATH"
echo "CHANGED=FALSE" >> $GITHUB_ENV
else
echo "Detected changes in $FOLDER_PATH"
echo "CHANGED=TRUE" >> $GITHUB_ENV
fi
- name: Github Docker login
env:
# GitHub will generate the token for the actor
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
make docker_login
- name: Build Docker Image
if: ${{ env.CHANGED == 'TRUE' }}
run: |
echo "Building docker image aws-python"
make docker_build IMAGE=aws-python TAG=${{ github.sha }}
make docker_tag IMAGE=aws-python TAG=${{ github.sha }} NEW_TAG=latest
- name: Push Docker Image
if: ${{ env.CHANGED == 'TRUE' }}
run: |
echo "Pushing docker image aws-python"
make docker_push IMAGE=aws-python TAG=${{ github.sha }}
make docker_push IMAGE=aws-python TAG=latest

artefact_versioning:
name: Artefact versioning
uses: mulecode/actions-workflow-templates/.github/workflows/workflow-docker-tag.yml@main
needs:
- prepare_versioning
- build
with:
dockerImage: ghcr.io/mulecode/tool-set-aws-python
dockerTag: ${{ github.sha }}
dockerNewTag: ${{ needs.prepare_versioning.outputs.nextVersion }}
secrets:
dockerUsername: ${{ github.actor }}
dockerPassword: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release version
uses: mulecode/actions-workflow-templates/.github/workflows/workflow-release.yml@main
needs:
- prepare_versioning
- artefact_versioning
with:
changelogPath: CHANGELOG.md
nextVersion: ${{ needs.prepare_versioning.outputs.nextVersion }}
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request

on:
pull_request:
types: [ opened, edited, synchronize, labeled, unlabeled ]

jobs:

lint_validate:
name: Docker Lint
uses: mulecode/actions-workflow-templates/.github/workflows/workflow-docker-lint.yml@main
with:
dockerfilePath: ./docker/aws-python/Dockerfile

vulnerabilities_scan:
name: Docker Vulnerability Scan
uses: mulecode/actions-workflow-templates/.github/workflows/workflow-docker-vulnerability-scan.yml@main
with:
dockerImage: ghcr.io/mulecode/tool-set-aws-python:${{ github.sha }}
dockerfileDir: ./docker/aws-python
policyPath: ./docker/aws-python/.snyk
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## 🚀 [2.0.0] - 16/03/2025

### ✅ New Features

- Tool set with python under amazon environment
- Python version 3.11.11
- OpenSSL version 1.1.1

---
Loading