Skip to content

add docker build system #6

add docker build system

add docker build system #6

name: build and push base docker images
# scheduled run every day at 18:00 GMT +03:00
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
- cron: "20 15 * * *"
jobs:
build-and-push-desktop:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Login to ghcr.io for docker
- name: Login to Github Containter Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build and push the base image
- name: Build and push base image
run: |
export PATH=$PATH:${{ github.workspace }}/docker
auv-docker-build desktop base true
# build-and-push-tegra:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# # Login to ghcr.io for docker
# - name: Login to Github Containter Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# with:
# platforms: arm64
# # Build and push the base image
# - name: Build and push base image
# run: |
# export PATH=$PATH:${{ github.workspace }}/docker
# auv-docker-build tegra base true