-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (51 loc) · 1.43 KB
/
build-lloadd-container-image.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
---
name: Build lloadd container image
"on":
workflow_dispatch:
push:
paths:
- .github/workflows/build-lloadd-container-image.yml
- lloadd/**
branches:
- main
pull_request:
paths:
- .github/workflows/build-lloadd-container-image.yml
- lloadd/**
jobs:
build-lloadd-container-image:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 2.6.7
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup docker
uses: docker/setup-buildx-action@v3
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.ref == 'refs/heads/main'
- name: Build container image
run: scripts/build.sh
env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
IMAGE: lloadd
REPOSITORY: osism/lloadd
VERSION: ${{ matrix.version }}
- name: Push container image
run: |
scripts/push.sh
env:
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
IMAGE: lloadd
REPOSITORY: osism/lloadd
VERSION: ${{ matrix.version }}
if: |
github.repository == 'osism/container-images' &&
github.ref == 'refs/heads/main'