-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 1.02 KB
/
build.yml
File metadata and controls
39 lines (33 loc) · 1.02 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
name: Build and Push Images
on:
# push:
# # branches:
# # - main
# tags:
# - 'v*.*.*'
workflow_dispatch:
jobs:
bake:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }} # Docker Hub username (use GitHub actor if using GHCR)
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build and push
uses: docker/bake-action@v6
with:
push: true
set: |
*.labels.org.opencontainers.image.created=${{ github.event.head_commit.timestamp || '"2025-04-27T10:34:00Z"' }}
*.labels.org.opencontainers.image.revision=${{ github.sha }}
*.cache-from=type=gha
*.cache-to=type=gha,mode=max