Skip to content

Upgrade Base Image #152

Upgrade Base Image

Upgrade Base Image #152

name: Upgrade Base Image
on:
schedule:
- cron: '0 * * * *' # Каждый час
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker-container
install: true
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push upgrade image
uses: docker/build-push-action@v4
with:
context: .
file: DockerfileUpgrade
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
platforms: linux/amd64
- name: Build and push NVIDIA image
uses: docker/build-push-action@v4
with:
context: .
file: DockerfileUpgradeNvidia
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest-nv
platforms: linux/amd64