Skip to content

Commit

Permalink
test another docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-online committed Jan 26, 2025
1 parent a271d92 commit ded042d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@ jobs:
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
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
Expand All @@ -22,7 +32,4 @@ jobs:
tags: ghcr.io/skywar-design/alt-atomic:latest
cache-from: type=gha
cache-to: type=gha,mode=max
# Добавить для параллельных слоев
platforms: linux/amd64
# Включить разделение слоев
outputs: type=registry,cache=true
platforms: linux/amd64
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ RUN ./configuration/clear.sh

WORKDIR /
# Помечаем образ как bootc совместимый
LABEL containers.bootc=1
LABEL containers.bootc=1

# Оптимизация для Buildx
ARG BUILDKIT_INLINE_CACHE=1

0 comments on commit ded042d

Please sign in to comment.