-
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.
- Loading branch information
1 parent
5f2a64f
commit de7c5ae
Showing
2 changed files
with
30 additions
and
31 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 |
---|---|---|
|
@@ -13,38 +13,7 @@ permissions: | |
id-token: write | ||
packages: write | ||
jobs: | ||
store-image-tags: | ||
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 ci/storeImageTags.js studio | ||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name 'github' | ||
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 | ||
check-code: | ||
needs: store-image-tags | ||
runs-on: ubuntu-latest | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
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,6 +10,36 @@ on: | |
permissions: | ||
id-token: write | ||
jobs: | ||
store-image-tags: | ||
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 ci/storeImageTags.js web | ||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name 'github' | ||
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 | ||
clean-ghcr: | ||
name: Delete old unused container images | ||
runs-on: ubuntu-latest | ||
|