-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (48 loc) · 1.4 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build & publish eXo Ubuntu images
on:
schedule:
- cron: '0 20 * * 6' # Every Saturday at 8 PM UTC
workflow_dispatch:
jobs:
build-ubuntu-images:
name: "Build Ubuntu Images"
permissions:
id-token: write
packages: write
contents: read
attestations: write
strategy:
fail-fast: false
matrix:
include:
# Ubuntu 20
- imageTag: 20
context: 20.04
- imageTag: 20.04
context: 20.04
# Ubuntu 22
- imageTag: 22
context: 22.04
- imageTag: 22.04
context: 22.04
# Ubuntu 24
- imageTag: 24
context: 24.04
- imageTag: 24.04
context: 24.04
### Latest
- imageTag: latest
context: 24.04
uses: exoplatform/swf-scripts/.github/workflows/buildDockerImage.yml@master
with:
dockerImage: "exoplatform/ubuntu"
dockerImageTag: ${{ matrix.imageTag }}
dockerFileContext: ${{ matrix.context }}
signImage: true
attestImage: true
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_PRIVATE_KEY_ID: ${{ secrets.DOCKER_PRIVATE_KEY_ID }}
DOCKER_PRIVATE_KEY: ${{ secrets.DOCKER_PRIVATE_KEY }}
DOCKER_PRIVATE_KEY_PASSPHRASE: ${{ secrets.DOCKER_PRIVATE_KEY_PASSPHRASE }}