-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·86 lines (77 loc) · 2.59 KB
/
multi-arch.yml
File metadata and controls
executable file
·86 lines (77 loc) · 2.59 KB
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
name: "Entando CI Docker images"
on:
push:
tags:
- "v*"
permissions: write-all
jobs:
docker-buildx:
name: Buildx
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta-ent-cli-github
id: meta-ent-cli-github
uses: docker/metadata-action@v4
with:
# List of Docker Images to use as base name for tags
images: |
entando/ent-cli-github
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Docker meta-ent-cli-ocp
id: meta-ent-cli-ocp
uses: docker/metadata-action@v4
with:
# List of Docker Images to use as base name for tags
images: |
entando/ent-cli-ocp
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.ENTANDO_OPT_DOCKER_USERNAME }}
password: ${{ secrets.ENTANDO_OPT_DOCKER_PASSWORD }}
- name: Build ent-cli-github
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.GitHub
push: true
tags: ${{ steps.meta-ent-cli-github.outputs.tags }}
build-args: |
ENTANDO_VERSION=${{ vars.ENTANDO_RELEASE }}
ENT_VERSION=${{ github.ref_name }}
labels: ${{ steps.meta-ent-cli-github.outputs.labels }}
platforms: linux/amd64
- name: Build ent-cli-ocp
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.OCP
push: true
tags: ${{ steps.meta-ent-cli-ocp.outputs.tags }}
build-args: |
ENT_VERSION=${{ vars.ENTANDO_RELEASE }}
ENT_CLI_VERSION=${{ github.ref_name }}
KUBECTL_RELEASE=${{ vars.KUBECTL_RELEASE }}
labels: ${{ steps.meta-ent-cli-ocp.outputs.labels }}
platforms: linux/amd64