Skip to content

Commit

Permalink
Merge pull request #16 from intelops/auto-tagging
Browse files Browse the repository at this point in the history
Auto tagging
  • Loading branch information
santoshkal authored Aug 4, 2024
2 parents 740f482 + 0f2cd4e commit 9dc498f
Show file tree
Hide file tree
Showing 23 changed files with 171 additions and 280 deletions.
23 changes: 23 additions & 0 deletions .github/get_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Function to read version from a specified version file
read_version() {
local version_file=$1
if [ -f "$version_file" ]; then
# Extract the version value from the file
local version_value=$(grep -oP '=(.*)$' "$version_file" | cut -d'=' -f2)
echo "$version_value"
else
echo "Version file not found: $version_file"
exit 1
fi
}

# Check the input parameter
if [ -z "$1" ]; then
echo "Usage: $0 <version_file>"
exit 1
fi

# Call the function with the specified version file
read_version "$1"
1 change: 1 addition & 0 deletions .github/versions/argocd_mod_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ARGOCD_MODULE_VERION=v0.0.1
2 changes: 2 additions & 0 deletions .github/versions/dockerfile_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DOCKERFILE_POLICIES_VERSION=V0.0.1

1 change: 1 addition & 0 deletions .github/versions/infrafile_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INFRAFILE_VERSION=V0.0.1
1 change: 1 addition & 0 deletions .github/versions/input_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INPUT_POLICIES_VERSION=v0.0.1
1 change: 1 addition & 0 deletions .github/versions/k8s_mod_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
K8S_MOD_VERSION=v0.0.1
1 change: 1 addition & 0 deletions .github/versions/tektoncd_mod_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEKTON_MOD_VERSION=v0.0.1
1 change: 1 addition & 0 deletions .github/versions/terraform_version.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TERRAFORM_POLICIES_VERSION=v0.0.1
40 changes: 0 additions & 40 deletions .github/workflows/publish-argocd-latest-modules.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish-dockerfile-input-policies.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish-dockerfile-policies.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish-infrafile-policies.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish-k8s-latest-module.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish-tektoncd-latest-modules.yaml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/publish-terraform-policies.yaml

This file was deleted.

Loading

0 comments on commit 9dc498f

Please sign in to comment.