-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 1.08 KB
/
docker.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
# SPDX-FileCopyrightText: 2023 froggie <[email protected]>
#
# SPDX-License-Identifier: OSL-3.0
name: docker
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '00 07 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v3
id: setup_repo
- name: Setup Docker image
uses: docker/setup-buildx-action@v2
id: setup_buildx
- name: Build Docker image
shell: bash
working-directory: ${{ env.SRC_DIR }}
run: |
cp .env.example .env && \
cp config/redis.conf.example config/redis.conf && \
docker buildx bake \
-f docker-compose.yml \
--builder ${{ steps.setup_buildx.outputs.name }} \
--set *.cache-from="type=gha,url=$ACTIONS_CACHE_URL,token=$ACTIONS_RUNTIME_TOKEN,scope=${{ runner.os }}-${{ github.workflow }}" \
--set *.cache-to="type=gha,url=$ACTIONS_CACHE_URL,token=$ACTIONS_RUNTIME_TOKEN,scope=${{ runner.os }}-${{ github.workflow }},mode=max"