-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9cd1a0
commit fcdb445
Showing
3 changed files
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
AWS_REGION: ${{ vars.AWS_REGION }} | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -21,35 +21,35 @@ jobs: | |
fetch-depth: 0 | ||
# Checkout the source code from the repository | ||
|
||
- name: Setup Golang | ||
id: setup_golang | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.20' | ||
# Set up the Go environment | ||
# - name: Setup Golang | ||
# id: setup_golang | ||
# uses: actions/[email protected] | ||
# with: | ||
# go-version: '1.20' | ||
# # Set up the Go environment | ||
|
||
- name: action-zip | ||
uses: montudor/[email protected] | ||
# Zip the source code | ||
# - name: action-zip | ||
# uses: montudor/[email protected] | ||
# # Zip the source code | ||
|
||
- name: Setting up change file detection action | ||
id: changed-files-specific | ||
uses: tj-actions/[email protected] | ||
with: | ||
base_sha: ${{ steps.get-base-sha.outputs.base_sha }} | ||
files: | | ||
**/*.go | ||
json: "true" | ||
# Detect any changes in the Go files | ||
# - name: Setting up change file detection action | ||
# id: changed-files-specific | ||
# uses: tj-actions/[email protected] | ||
# with: | ||
# base_sha: ${{ steps.get-base-sha.outputs.base_sha }} | ||
# files: | | ||
# **/*.go | ||
# json: "true" | ||
# # Detect any changes in the Go files | ||
|
||
- name: Run step if any file(s) in the integration folder change | ||
if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
run: | | ||
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}" | ||
echo "${{ steps.changed-files-specific.outputs.all_changed_files }}" > list.txt | ||
cp ../.github/scripts/golang-build-deploy.sh . | ||
bash golang-build-deploy.sh | ||
# Execute build and deploy script if any Go files have changed | ||
# - name: Run step if any file(s) in the integration folder change | ||
# if: steps.changed-files-specific.outputs.any_changed == 'true' | ||
# run: | | ||
# echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}" | ||
# echo "${{ steps.changed-files-specific.outputs.all_changed_files }}" > list.txt | ||
# cp ../.github/scripts/golang-build-deploy.sh . | ||
# bash golang-build-deploy.sh | ||
# # Execute build and deploy script if any Go files have changed | ||
|
||
- name: Setup Terraform | ||
id: Setting_up_terraform | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters