34 lines
814 B
YAML
34 lines
814 B
YAML
name: Build ETPGRF-site
|
||
|
||
on:
|
||
push:
|
||
branches: ['main']
|
||
|
||
jobs:
|
||
build:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout code
|
||
uses: actions/checkout@v3
|
||
|
||
- name: Set up QEMU
|
||
uses: docker/setup-qemu-action@v2
|
||
|
||
- name: Set up Docker Buildx
|
||
uses: docker/setup-buildx-action@v2
|
||
|
||
- name: Login to Gitea Registry
|
||
uses: docker/login-action@v2
|
||
with:
|
||
registry: git.cube2.ru
|
||
username: ${{ github.actor }}
|
||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||
|
||
- name: Build and push image ETPGRF-site
|
||
uses: docker/build-push-action@v4
|
||
with:
|
||
context: .
|
||
platforms: linux/amd64,linux/arm64 # <-- ВОТ ЭТО
|
||
push: true
|
||
tags: git.cube2.ru/${{ github.repository }}:latest
|