Skip to content

Commit ea98802

Browse files
committed
ci: use GitHub workflow
1 parent c57b748 commit ea98802

File tree

4 files changed

+62
-70
lines changed

4 files changed

+62
-70
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"
7+

.github/settings.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Docker CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ["*"]
7+
pull_request:
8+
schedule:
9+
- cron: 0 0 * * 0
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
16+
17+
- uses: editorconfig-checker/action-editorconfig-checker@840e866d93b8e032123c23bac69dece044d4d84c
18+
19+
- run: editorconfig-checker
20+
21+
build:
22+
needs: lint
23+
uses: owncloud-docker/ubuntu/.github/workflows/docker-build.yml@master
24+
with:
25+
docker-repo-name: owncloud/${{ github.event.repository.name }}
26+
docker-tag: ${{ matrix.release.version }}
27+
docker-context: ${{ matrix.release.base }}
28+
docker-file: ${{ matrix.release.base }}/Dockerfile.multiarch
29+
docker-hub-username: ${{ vars.DOCKERHUB_USERNAME }}
30+
docker-build-args: |
31+
TARBALL_URL=${{ matrix.release.tarball }}
32+
push: ${{ github.ref == 'refs/heads/master' }}
33+
secrets:
34+
docker-hub-password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
36+
strategy:
37+
matrix:
38+
release:
39+
- version: 11.0.0-prealpha
40+
tarball: https://download.owncloud.com/server/daily/owncloud-daily-master.tar.bz2
41+
base: "v24.04"
42+
43+
update-docker-hub-description:
44+
needs: build
45+
if: github.ref == 'refs/heads/master'
46+
uses: owncloud-docker/ubuntu/.github/workflows/docker-hub-desc.yml@master
47+
with:
48+
docker-repo-name: owncloud/${{ github.event.repository.name }}
49+
docker-repo-description: ownCloud - Secure Collaboration Platform
50+
docker-hub-username: ${{ vars.DOCKERHUB_USERNAME }}
51+
secrets:
52+
docker-hub-password: ${{ secrets.DOCKERHUB_TOKEN }}

v22.04/Dockerfile.multiarch

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM docker.io/owncloud/base:22.04@sha256:afe32d25d014b6ca6a9ef338ce8c731dac642ce501123370d5ed002b62b258d7
22

3+
ARG TARBALL_URL
4+
35
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
46
org.opencontainers.image.authors="ownCloud DevOps <devops@owncloud.com>" \
57
org.opencontainers.image.vendor="ownCloud GmbH" \
@@ -9,7 +11,7 @@ LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
911
org.opencontainers.image.source="https://github.com/owncloud-docker/server" \
1012
org.opencontainers.image.documentation="https://github.com/owncloud-docker/server"
1113

12-
ADD owncloud.tar.bz2 /var/www/
14+
ADD ${TARBALL_URL} /var/www/
1315

1416
ADD overlay /
1517
WORKDIR /var/www/owncloud

0 commit comments

Comments
 (0)