Skip to content

Commit

Permalink
new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
P0NDER0SA committed Jan 7, 2025
1 parent 9000d4f commit 0ae8f65
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/update_image_manifests_staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Update version file
run: |
echo "Updating docker tag in staging.env"
sed -i 's/^ADMIN_DOCKER_TAG:.*/ADMIN_DOCKER_TAG: ${GITHUB_SHA::7}/' notification-manifests/helmfile/overrides/staging.env
sed -i 's/^ADMIN_DOCKER_TAG:.*/ADMIN_DOCKER_TAG: ${GITHUB_SHA::7}/' z.env
- name: setup git config
run: |
Expand All @@ -30,42 +30,20 @@ jobs:
with:
route: PUT /repos/:repository/branches/main/protection
repository: ${{ github.repository }}
required_status_checks: |
null
required_linear_history: |
null
enforce_admins: |
null
required_pull_request_reviews: |
null
restrictions: |
null
env:
GITHUB_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_STAGING }}

- name: commit
run: |
git add VERSION
git commit -m "New release: ${CURRENT_VERSION} -> ${NEW_VERSION}"
git push origin main
git add z.env
git commit -m "New image tag ${GITHUB_SHA::7}"
git push origin helm-tagging
- name: Branch protection ON
if: always()
uses: octokit/[email protected]
with:
route: PUT /repos/:repository/branches/main/protection
repository: ${{ github.repository }}
required_status_checks: |
strict: true
checks:
- context: testing_manifest
required_linear_history: |
true
enforce_admins: |
true
required_pull_request_reviews: |
required_approving_review_count: 1
restrictions: |
null
env:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}

0 comments on commit 0ae8f65

Please sign in to comment.