-
-
Notifications
You must be signed in to change notification settings - Fork 41
64 lines (57 loc) · 1.65 KB
/
default.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
name: Build Docker Images
on:
push:
branches:
- main
tags:
- '*'
schedule:
- cron: '0 2 * * 0' # Weekly on Sundays at 02:00
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Docker Image
permissions:
contents: read
id-token: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Depot
uses: depot/setup-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/azuracast/azuracast.com
tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=branch
type=semver,pattern={{version}}
- name: Publish Docker Image (Main Docs Build)
uses: depot/build-push-action@v1
with:
context: .
target: build
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/azuracast/azuracast.com:build
- name: Publish Docker Image (Builtin Build)
uses: depot/build-push-action@v1
with:
context: .
target: builtin
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/azuracast/azuracast.com:builtin