forked from joernio/joern
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (78 loc) · 2.51 KB
/
containers.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Upload Container image
on:
schedule:
- cron: "0 8 * * *" # run once daily
workflow_dispatch: # allow to manually trigger this workflow
env:
REGISTRY: ghcr.io
jobs:
deploy:
if: github.repository_owner == 'joernio'
runs-on: ubuntu-latest
continue-on-error: true
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/joernio/joern
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
context: .
file: ci/Dockerfile.alma
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=joern
cache-to: type=gha,mode=max,scope=joern
- name: Extract metadata (tags, labels) for Docker
id: meta3
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/joernio/joern-slim
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
context: .
file: ci/Dockerfile.slim
platforms: linux/amd64
push: true
tags: ${{ steps.meta3.outputs.tags }}
labels: ${{ steps.meta3.outputs.labels }}
cache-from: type=gha,scope=joern-slim
cache-to: type=gha,mode=max,scope=joern-slim
- name: Extract metadata (tags, labels) for Docker
id: meta2
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/joernio/joern-alma8
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
context: .
file: ci/Dockerfile.alma8
platforms: linux/amd64
push: true
tags: ${{ steps.meta2.outputs.tags }}
labels: ${{ steps.meta2.outputs.labels }}
cache-from: type=gha,scope=joern-alma8
cache-to: type=gha,mode=max,scope=joern-alma8