Skip to content

Update build-image.yml #202

Update build-image.yml

Update build-image.yml #202

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