-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (46 loc) · 1.71 KB
/
Copy pathmain.yml
File metadata and controls
51 lines (46 loc) · 1.71 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
name: Docker CI
on:
push:
branches: [master]
tags: ["*"]
pull_request:
schedule:
- cron: 0 0 * * 0
jobs:
lint:
uses: owncloud-docker/ubuntu/.github/workflows/lint-editorconfig.yml@master
build:
name: build (${{ matrix.version.value }})
needs: lint
uses: owncloud-docker/ubuntu/.github/workflows/docker-build.yml@master
with:
docker-repo-name: owncloud/${{ github.event.repository.name }}
docker-tag: ${{ matrix.version.value }}
docker-context: v${{ matrix.version.value }}
docker-file: v${{ matrix.version.value }}/Dockerfile.multiarch
docker-hub-username: ${{ vars.DOCKERHUB_USERNAME }}
smoke-test-cmd: ${{ matrix.version.smoke-test-cmd }}
push: ${{ github.ref == 'refs/heads/master' }}
build-date-tag: true
secrets:
docker-hub-password: ${{ secrets.DOCKERHUB_TOKEN }}
docker-secrets: |
mirror-url=${{ secrets.DEB_MIRROR_URL }}
mirror-auth=machine ${{secrets.DEB_MIRROR_URL}} login ${{secrets.DEB_MIRROR_LOGIN}} password ${{secrets.DEB_MIRROR_PWD}}
strategy:
matrix:
version:
- value: "22.04"
smoke-test-cmd: "php --version | grep -qF 'PHP 7.4'"
- value: "24.04"
smoke-test-cmd: "php --version | grep -qF 'PHP 8.3'"
update-docker-hub-description:
needs: build
if: github.ref == 'refs/heads/master'
uses: owncloud-docker/ubuntu/.github/workflows/docker-hub-desc.yml@master
with:
docker-repo-name: owncloud/${{ github.event.repository.name }}
docker-repo-description: ownCloud PHP and webserver base image
docker-hub-username: ${{ vars.DOCKERHUB_USERNAME }}
secrets:
docker-hub-password: ${{ secrets.DOCKERHUB_TOKEN }}