Skip to content

Commit

Permalink
29
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Sep 13, 2023
1 parent 414ade0 commit 16616b5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.git/
.github/
templates/
*.py
*.yaml
*.md
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,15 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push to Github registry
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/mkst/compilers/${{ matrix.image }}:latest
file: ${{ matrix.dockerfile }}
# context: ${{ matrix.context }}
# cache-from: type=gha,scope=build-${{ matrix.platform }}
# cache-to: type=gha,scope=build-${{ matrix.platform }}
2 changes: 2 additions & 0 deletions matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ def main():

include = {}
include["dockerfile"] = dockerfile
include["context"] = dockerfile.replace("/Dockerfile", "")
include["platform"] = platform
include["compiler_id"] = compiler_id
include["clean_compiler_id"] = clean_compiler_id

if arch is not None:
include["image"] = f"{platform}/{clean_compiler_id}/{arch}"
else:
Expand Down

0 comments on commit 16616b5

Please sign in to comment.