-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 1.58 KB
/
release.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
name: Release
on:
push:
branches:
- v1
- v2
# Build daily on 00:00 UTC
schedule:
- cron: '0 0 * * SAT'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
generate:
runs-on: ubuntu-latest
steps:
- id: alpine
uses: actions-matrix/alpine-matrix-action@v1
with:
count: 10
outputs:
version: ${{ steps.alpine.outputs.version }}
build:
runs-on: ubuntu-latest
needs: [generate]
# continue-on-error: true
strategy:
fail-fast: false
matrix:
version: ${{ fromJson(needs.generate.outputs.version) }}
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: libreofficedocker/alpine
tags: type=raw,value=${{ matrix.version }}
- name: Build and push
uses: docker/bake-action@v3
env:
ALPINE_VERSION: ${{ matrix.version }}
with:
files: |
docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
push: ${{ github.event_name != 'pull_request' }}
- name: Docker Metadata Summary
uses: dockerbakery/docker-metadata-summary@v1