-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚗️ Experiment script to store prod tags #1770
- Loading branch information
1 parent
ff78802
commit 567593f
Showing
1 changed file
with
30 additions
and
0 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 |
---|---|---|
|
@@ -87,3 +87,33 @@ jobs: | |
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
if: failure() | ||
|
||
store-image-tags: | ||
needs: deploy-studio | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout internal 🛎️ | ||
id: checkout-internal | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'equinor/energyvision-internal' | ||
ref: main | ||
token: ${{ secrets.PAT }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' # Or any version you prefer | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install js-yaml | ||
- name: Run script for 'studio' | ||
run: node storeImageTags.js studio | ||
- name: Commit and push changes | ||
run: | | ||
git config --global user.email '[email protected]' | ||
git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/equinor/energyvision-internal | ||
git add latest-prod-tags.json | ||
git commit -m "Update latest-prod-tags.json with new tags" || echo "No changes to commit" | ||
git push |