-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change kernel conf, add layout=ostree
- Loading branch information
1 parent
6163f40
commit a271d92
Showing
4 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM registry.altlinux.org/sisyphus/base:latest | ||
|
||
# Копируем скрипты | ||
COPY src /src | ||
|
||
# Устанавливаем переменные окружения | ||
ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig" | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
WORKDIR /src | ||
# Делаем один RUN запуск, потому что увеличние их числа добавляет ненужные слои и увеличивает обьем образа | ||
RUN chmod +x main.sh && ./main.sh | ||
|
||
WORKDIR / | ||
# Помечаем образ как bootc совместимый | ||
LABEL containers.bootc=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Docker Image CI | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# 1. Checkout кода из репозитория | ||
- uses: actions/checkout@v4 | ||
|
||
# 2 Логин в GitHub Container Registry | ||
- name: Log in to GitHub Container Registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin | ||
|
||
# 3. Сборка Docker-образа | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag ghcr.io/skywar-design/alt-atomic:source | ||
|
||
# 4. Загрузка Docker-образа в GitHub Container Registry | ||
- name: Push the Docker image to GitHub Container Registry | ||
run: docker push ghcr.io/skywar-design/alt-atomic:source |