Skip to content

Commit

Permalink
Pipeline improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
egonbraun committed Jun 12, 2024
1 parent e2a6419 commit 12ab568
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ jobs:
strategy:
matrix:
platforms: ${{ fromJSON(needs.pre-ci.outputs.platforms) }}
permissions:
attestations: write
contents: read
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -80,6 +85,13 @@ jobs:
type: container
job: ci

- name: Login to GitHub Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.PROJECT_DOCKER_HOST }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build
env:
PROJECT_DOCKER_PLATFORMS: ${{ matrix.platforms }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ build:
--build-arg DEFAULT_USER_SECONDARY_GROUPS="$(DEFAULT_USER_SECONDARY_GROUPS)" \
--build-arg DEFAULT_USER_SHELL="$(DEFAULT_USER_SHELL)" \
--build-arg DEFAULT_USER="$(DEFAULT_USER)" \
--cache-from type=gha \
--cache-to type=gha,mode=max \
--cache-from "type=$(PROJECT_DOCKER_CACHE_BACKEND)" \
--cache-to "type=$(PROJECT_DOCKER_CACHE_BACKEND),mode=max" \
--file "$(SOURCE_DIR)/Dockerfile" \
--platform "$$platform" \
--tag "$(PROJECT_NAME):$(PROJECT_VERSION)-$$arch" \
Expand Down

0 comments on commit 12ab568

Please sign in to comment.