Skip to content

Commit a552da9

Browse files
authored
Merge pull request #339 from EESSI/develop
merging `develop` into `main` for release v0.9.0
2 parents 95c574b + 764c5c9 commit a552da9

19 files changed

+1545
-526
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build and publish a Smee client container image
2+
3+
on:
4+
push:
5+
paths:
6+
- containers/Dockerfile.smee-client
7+
- .github/workflows/build_smee_client_container_image.yaml
8+
pull_request:
9+
paths:
10+
- containers/Dockerfile.smee-client
11+
- .github/workflows/build_smee_client_container_image.yaml
12+
13+
# Declare default permissions as read only.
14+
permissions: read-all
15+
16+
jobs:
17+
docker_build_smee_client:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
packages: write
21+
steps:
22+
- name: Check out the repo
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
25+
- name: Login to GitHub Container Registry
26+
if: github.event_name != 'pull_request'
27+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.repository_owner }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Convert and store repository owner in lowercase, replace colon in tag names by hyphen
34+
run: |
35+
echo REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
36+
37+
- name: Set up QEMU
38+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
39+
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
42+
43+
- name: Cache Docker layers
44+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
45+
with:
46+
path: ${{ runner.temp }}/.buildx-cache
47+
key: ${{ runner.os }}-buildx-${{ github.sha }}
48+
restore-keys: |
49+
${{ runner.os }}-buildx-
50+
51+
- name: Build and push
52+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
53+
with:
54+
tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/smee-client
55+
platforms: linux/amd64,linux/arm64
56+
push: ${{ github.event_name != 'pull_request' }} # don't publish if this is part of an open PR
57+
file: containers/Dockerfile.smee-client
58+
cache-from: type=local,src=${{ runner.temp }}/.buildx-cache
59+
cache-to: type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max
60+
61+
- name: Move cache
62+
run: |
63+
rm -rf ${{ runner.temp }}/.buildx-cache
64+
mv ${{ runner.temp }}/.buildx-cache-new ${{ runner.temp }}/.buildx-cache
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This file is part of the EESSI build-and-deploy bot,
2+
# see https://github.com/EESSI/eessi-bot-software-layer
3+
#
4+
# The bot helps with requests to add software installations to the
5+
# EESSI software layer, see https://github.com/EESSI/software-layer
6+
#
7+
# author: Thomas Roeblitz (@trz42)
8+
#
9+
# license: GPLv2
10+
#
11+
12+
name: Markdown Lint
13+
on: [push, pull_request]
14+
# Declare default permissions as read only.
15+
permissions: read-all
16+
17+
jobs:
18+
markdown-lint:
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.0
26+
with:
27+
node-version: '18'
28+
29+
- name: Install markdownlint-cli
30+
run: npm install -g markdownlint-cli
31+
32+
- name: Run markdownlint
33+
run: markdownlint "**/*.md" --ignore .git

.github/workflows/scorecards.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ on:
1717
schedule:
1818
- cron: '25 15 * * 3'
1919
push:
20-
branches: [ "main" ]
20+
branches: [ "main", "develop" ]
2121
pull_request:
22-
branches:
23-
- main
22+
branches: [ "main", "develop" ]
2423

2524
# Declare default permissions as read only.
2625
permissions: read-all
@@ -67,14 +66,14 @@ jobs:
6766
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6867
# format to the repository Actions tab.
6968
- name: "Upload artifact"
70-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
69+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
7170
with:
7271
name: SARIF file
7372
path: results.sarif
7473
retention-days: 5
7574

7675
# Upload the results to GitHub's code scanning dashboard.
7776
- name: "Upload to code-scanning"
78-
uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
77+
uses: github/codeql-action/upload-sarif@9fdb3e49720b44c48891d036bb502feb25684276 # v3.25.6
7978
with:
8079
sarif_file: results.sarif

.markdownlint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"default": true,
3+
"MD013": false,
4+
"MD033": false,
5+
"MD041": false,
6+
"MD024": false,
7+
"MD026": {
8+
"punctuation": ".,;:!"
9+
}
10+
}

0 commit comments

Comments
 (0)