-
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
Showing
163 changed files
with
29,159 additions
and
11,178 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Delete old ghrc images | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- '.github/workflows/ghcr_cleanup/**' | ||
- '.github/workflows/ghcr-cleanup_v2.yaml' | ||
# schedule: | ||
# - cron: '0 0 * * *' # every day at midnight | ||
permissions: | ||
id-token: write | ||
jobs: | ||
clean-ghcr: | ||
name: Delete old unused container images | ||
runs-on: ubuntu-latest | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get token 🔑 | ||
id: get-token | ||
uses: ./.github/workflows/get-auth-token/ | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install dependencies | ||
run: npm install node-fetch | ||
|
||
- name: Make API request and get used tags | ||
id: fetch_and_process | ||
run: node '.github/workflows/ghcr_cleanup/cleanup.js' | ||
|
||
# - name: Clean up Docker images | ||
# uses: snok/container-retention-policy@v1 | ||
# with: | ||
# token: ${{ secrets.NLUN_GITHUB_PAT }} | ||
# account-type: org | ||
# org-name: Equinor | ||
# image-names: energyvision/* | ||
# skip-tags: ${{ steps.fetch_and_process.outputs.tags }} | ||
|
||
- name: log-errors-to-slack 📄 | ||
uses: act10ns/slack@v2 | ||
with: | ||
status: ${{ job.status }} | ||
steps: ${{ toJson(steps) }} | ||
if: failure() |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import fetch from 'node-fetch' | ||
|
||
const bearerToken = process.env.APP_SERVICE_ACCOUNT_TOKEN | ||
|
||
async function cleanup() { | ||
const url = | ||
'https://server-radix-api-prod.c2.radix.equinor.com/api/v1/applications/equinor-web-sites/deployments?environment=prod' | ||
const response = await fetch(url, { | ||
headers: { | ||
accept: 'application/json', | ||
Authorization: `Bearer ${bearerToken}`, | ||
}, | ||
}) | ||
|
||
const rawData = await response.json() | ||
const data = Array.isArray(rawData) ? rawData : undefined | ||
|
||
if (!data || data.length === 0) return | ||
|
||
// Sort by activeFrom | ||
data.sort((a, b) => new Date(b.activeFrom).getTime() - new Date(a.activeFrom).getTime()) | ||
|
||
// Filter the results, keeping only latest 5 images, and only image urls | ||
const filteredData = data | ||
.slice(0, 5) | ||
.map((item) => item.components.map((c) => c.image)) | ||
.flat() | ||
.sort() | ||
|
||
return filteredData | ||
} | ||
|
||
cleanup().then((tags) => console.log(`::set-output name=tags::${tags}`)) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-321 KB
...al-general-meeting/english/2018/2018-notice-annual-general-meeting-statoil-appendices.pdf
Binary file not shown.
Binary file removed
BIN
-2.47 MB
...dam/statoil/documents/quarterly-reports/2016/q1-2016/statoil-ceo-presentation-q1-2016.pdf
Binary file not shown.
Binary file removed
BIN
-2.13 MB
...dam/statoil/documents/quarterly-reports/2016/q1-2016/statoil-cfo-presentation-q1-2016.pdf
Binary file not shown.
Binary file removed
BIN
-1.2 MB
...l/documents/quarterly-reports/2016/q1-2016/statoil-financial-statement-review-q1-2016.pdf
Binary file not shown.
Binary file removed
BIN
-188 KB
...nt/dam/statoil/documents/quarterly-reports/2016/q1-2016/statoil-press-release-1q-2016.pdf
Binary file not shown.
Binary file removed
BIN
-779 KB
...uments/quarterly-reports/2018/q3-2018/equinor-financial-statements-and-review-q3-2018.pdf
Binary file not shown.
Binary file removed
BIN
-108 KB
...nt/dam/statoil/documents/quarterly-reports/2018/q3-2018/equinor-press-release-q3-2018.pdf
Binary file not shown.
Binary file removed
BIN
-2.95 MB
...ent/dam/statoil/documents/quarterly-reports/2018/q3-2018/equinor-q3-2018-analyst-call.pdf
Binary file not shown.
Binary file removed
BIN
-2.27 MB
...dam/statoil/documents/quarterly-reports/2018/q3-2018/equinor-q3-2018-press-conference.pdf
Binary file not shown.
Binary file removed
BIN
-191 KB
.../image/news/2016-april/1q2016-drilling-16-9.jpg.transform/extra-large/image.jpg
Binary file not shown.
Binary file removed
BIN
-19.1 KB
.../image/news/2016-april/1q2016-drilling-16-9.jpg.transform/extra-small/image.jpg
Binary file not shown.
Binary file removed
BIN
-130 KB
...tatoil/image/news/2016-april/1q2016-drilling-16-9.jpg.transform/large/image.jpg
Binary file not shown.
Binary file removed
BIN
-57 KB
...atoil/image/news/2016-april/1q2016-drilling-16-9.jpg.transform/medium/image.jpg
Binary file not shown.
Binary file removed
BIN
-37.4 KB
...tatoil/image/news/2016-april/1q2016-drilling-16-9.jpg.transform/small/image.jpg
Binary file not shown.
Binary file removed
BIN
-262 KB
...am/statoil/image/news/2016-february/gallant.jpg.transform/extra-large/image.jpg
Binary file not shown.
Binary file removed
BIN
-22.6 KB
...am/statoil/image/news/2016-february/gallant.jpg.transform/extra-small/image.jpg
Binary file not shown.
Binary file removed
BIN
-177 KB
...tent/dam/statoil/image/news/2016-february/gallant.jpg.transform/large/image.jpg
Binary file not shown.
Binary file removed
BIN
-73.5 KB
...ent/dam/statoil/image/news/2016-february/gallant.jpg.transform/medium/image.jpg
Binary file not shown.
Binary file removed
BIN
-46.4 KB
...tent/dam/statoil/image/news/2016-february/gallant.jpg.transform/small/image.jpg
Binary file not shown.
Binary file removed
BIN
-119 KB
...l/image/news/2016-february/innovation-award.JPG.transform/extra-large/image.JPG
Binary file not shown.
Binary file removed
BIN
-13.3 KB
...l/image/news/2016-february/innovation-award.JPG.transform/extra-small/image.JPG
Binary file not shown.
Binary file removed
BIN
-80.5 KB
...statoil/image/news/2016-february/innovation-award.JPG.transform/large/image.JPG
Binary file not shown.
Binary file removed
BIN
-35.8 KB
...tatoil/image/news/2016-february/innovation-award.JPG.transform/medium/image.JPG
Binary file not shown.
Binary file removed
BIN
-24.6 KB
...statoil/image/news/2016-february/innovation-award.JPG.transform/small/image.JPG
Binary file not shown.
Binary file removed
BIN
-166 KB
...oil/image/news/2016-february/jaeren-beaches.jpg.transform/extra-large/image.jpg
Binary file not shown.
Binary file removed
BIN
-16 KB
...oil/image/news/2016-february/jaeren-beaches.jpg.transform/extra-small/image.jpg
Binary file not shown.
Binary file removed
BIN
-113 KB
...m/statoil/image/news/2016-february/jaeren-beaches.jpg.transform/large/image.jpg
Binary file not shown.
Binary file removed
BIN
-49.1 KB
.../statoil/image/news/2016-february/jaeren-beaches.jpg.transform/medium/image.jpg
Binary file not shown.
Binary file removed
BIN
-31.7 KB
...m/statoil/image/news/2016-february/jaeren-beaches.jpg.transform/small/image.jpg
Binary file not shown.
Binary file removed
BIN
-262 KB
...ews/2016-february/oseberg-field-centre-16-9.jpg.transform/extra-large/image.jpg
Binary file not shown.
Binary file removed
BIN
-20 KB
...ews/2016-february/oseberg-field-centre-16-9.jpg.transform/extra-small/image.jpg
Binary file not shown.
Binary file removed
BIN
-173 KB
...mage/news/2016-february/oseberg-field-centre-16-9.jpg.transform/large/image.jpg
Binary file not shown.
Binary file removed
BIN
-67.9 KB
...age/news/2016-february/oseberg-field-centre-16-9.jpg.transform/medium/image.jpg
Binary file not shown.
Binary file removed
BIN
-41.9 KB
...mage/news/2016-february/oseberg-field-centre-16-9.jpg.transform/small/image.jpg
Binary file not shown.
Binary file removed
BIN
-138 KB
...il/image/news/2016-february/torger-roed-2-3.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-12.9 KB
...il/image/news/2016-february/torger-roed-2-3.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-88.4 KB
.../statoil/image/news/2016-february/torger-roed-2-3.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-35.8 KB
...statoil/image/news/2016-february/torger-roed-2-3.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-23.4 KB
.../statoil/image/news/2016-february/torger-roed-2-3.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-81.6 KB
...il/image/news/2016-january/eldar-saetre-2-3.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-9.02 KB
...il/image/news/2016-january/eldar-saetre-2-3.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-55.2 KB
.../statoil/image/news/2016-january/eldar-saetre-2-3.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-24 KB
...statoil/image/news/2016-january/eldar-saetre-2-3.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-16.5 KB
.../statoil/image/news/2016-january/eldar-saetre-2-3.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-67.3 KB
...oil/image/news/2017-january/jez-averty-16-9.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-8.56 KB
...oil/image/news/2017-january/jez-averty-16-9.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-47.1 KB
...m/statoil/image/news/2017-january/jez-averty-16-9.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-21.8 KB
.../statoil/image/news/2017-january/jez-averty-16-9.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-14.9 KB
...m/statoil/image/news/2017-january/jez-averty-16-9.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-157 KB
...il/image/news/2017-january/kjetel-digre-1-1.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-14.1 KB
...il/image/news/2017-january/kjetel-digre-1-1.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-104 KB
.../statoil/image/news/2017-january/kjetel-digre-1-1.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-42.8 KB
...statoil/image/news/2017-january/kjetel-digre-1-1.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-27.3 KB
.../statoil/image/news/2017-january/kjetel-digre-1-1.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-158 KB
...2017-january/ocean-vanguard-0092587-1217725.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-15.1 KB
...2017-january/ocean-vanguard-0092587-1217725.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-107 KB
.../news/2017-january/ocean-vanguard-0092587-1217725.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-45.1 KB
...news/2017-january/ocean-vanguard-0092587-1217725.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-29.1 KB
.../news/2017-january/ocean-vanguard-0092587-1217725.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-144 KB
...l/image/news/2017-july/irene-rummelhoff-1-1.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-16.7 KB
...l/image/news/2017-july/irene-rummelhoff-1-1.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-101 KB
...statoil/image/news/2017-july/irene-rummelhoff-1-1.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-46.5 KB
...tatoil/image/news/2017-july/irene-rummelhoff-1-1.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-31.1 KB
...statoil/image/news/2017-july/irene-rummelhoff-1-1.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-179 KB
...tatoil/image/news/2017-june/margareth-ovrum.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-18.7 KB
...tatoil/image/news/2017-june/margareth-ovrum.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-123 KB
.../dam/statoil/image/news/2017-june/margareth-ovrum.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-54.1 KB
...dam/statoil/image/news/2017-june/margareth-ovrum.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-35.4 KB
.../dam/statoil/image/news/2017-june/margareth-ovrum.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-190 KB
.../news/2017-march/27mar-margareth-oevrum-1-1.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-19.4 KB
.../news/2017-march/27mar-margareth-oevrum-1-1.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-130 KB
.../image/news/2017-march/27mar-margareth-oevrum-1-1.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-56.8 KB
...image/news/2017-march/27mar-margareth-oevrum-1-1.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-37.9 KB
.../image/news/2017-march/27mar-margareth-oevrum-1-1.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-137 KB
...mage/news/2017-september/07sep-dudgeon-16-9.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-15 KB
...mage/news/2017-september/07sep-dudgeon-16-9.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-96.4 KB
...toil/image/news/2017-september/07sep-dudgeon-16-9.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-44 KB
...oil/image/news/2017-september/07sep-dudgeon-16-9.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-28.7 KB
...toil/image/news/2017-september/07sep-dudgeon-16-9.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-7.67 MB
...blic/content/dam/statoil/image/news/2018-february/07feb-johan-sverdrup-16-9.jpg
Diff not rendered.
Binary file removed
BIN
-159 KB
...ews/2018-february/07feb-johan-sverdrup-16-9.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-12.8 KB
...ews/2018-february/07feb-johan-sverdrup-16-9.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-104 KB
...mage/news/2018-february/07feb-johan-sverdrup-16-9.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-41.2 KB
...age/news/2018-february/07feb-johan-sverdrup-16-9.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-25.8 KB
...mage/news/2018-february/07feb-johan-sverdrup-16-9.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-141 KB
...y/14may2018-johan-sverdrup-power-cable-16-9.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-12.7 KB
...y/14may2018-johan-sverdrup-power-cable-16-9.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-95.9 KB
...018-may/14may2018-johan-sverdrup-power-cable-16-9.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-40.4 KB
...18-may/14may2018-johan-sverdrup-power-cable-16-9.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-25.5 KB
...018-may/14may2018-johan-sverdrup-power-cable-16-9.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-110 KB
...october/equinor-oseberg-vestflanken-1463003.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-15.9 KB
...october/equinor-oseberg-vestflanken-1463003.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-79.5 KB
.../2018-october/equinor-oseberg-vestflanken-1463003.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-39.4 KB
...2018-october/equinor-oseberg-vestflanken-1463003.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-27.8 KB
.../2018-october/equinor-oseberg-vestflanken-1463003.jpg.transform/small/image.jpg
Diff not rendered.
Binary file removed
BIN
-117 KB
...d-of-directors/equinor-eldar-saetre-1339865.jpg.transform/extra-large/image.jpg
Diff not rendered.
Binary file removed
BIN
-11.8 KB
...d-of-directors/equinor-eldar-saetre-1339865.jpg.transform/extra-small/image.jpg
Diff not rendered.
Binary file removed
BIN
-77.2 KB
...s/board-of-directors/equinor-eldar-saetre-1339865.jpg.transform/large/image.jpg
Diff not rendered.
Binary file removed
BIN
-32.6 KB
.../board-of-directors/equinor-eldar-saetre-1339865.jpg.transform/medium/image.jpg
Diff not rendered.
Binary file removed
BIN
-21.7 KB
...s/board-of-directors/equinor-eldar-saetre-1339865.jpg.transform/small/image.jpg
Diff not rendered.
5 changes: 0 additions & 5 deletions
5
legacy/content/public/en/news/02nov2017-notifiable-trading.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
legacy/content/public/en/news/07sep2017-dudgeon-turbines-installed.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.