-
-
Notifications
You must be signed in to change notification settings - Fork 115
53 lines (47 loc) · 1.63 KB
/
Copy pathearthly.yml
File metadata and controls
53 lines (47 loc) · 1.63 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
52
53
name: Docker
on:
push:
branches: ["main"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Log into registry
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: xe
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
if: github.event_name != 'pull_request'
id: build
uses: docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
with:
source: .
push: true
set: |
patreon-saasproxy.tags=ghcr.io/xe/site/patreon-saasproxy:latest
sponsor-panel.tags=ghcr.io/xe/site/sponsor-panel:latest
xesite.tags=ghcr.io/xe/site/bin:latest
- name: Build Docker image
if: github.event_name == 'pull_request'
uses: docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
with:
source: .
push: false
set: |
patreon-saasproxy.tags=ghcr.io/xe/site/patreon-saasproxy:latest
sponsor-panel.tags=ghcr.io/xe/site/sponsor-panel:latest
xesite.tags=ghcr.io/xe/site/bin:latest