-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.07 KB
/
build-image-lite.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
name: Docker Image Lite CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '17 1 * * 6'
jobs:
build-lite:
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
contents: read
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v3
name: Build and push
with:
platforms: linux/amd64,linux/arm64
file : Dockerfile.lite
push : true
tags : nmaguiar/imgutils:build-lite
# - uses: docker/build-push-action@v3
# name: Build and push ubi
# with:
# platforms: linux/amd64,linux/arm64
# file: Dockerfile.ubi
# push: true
# tags: nmaguiar/imgutils:ubi-build