Skip to content

Commit

Permalink
build(ci): increase support for arm64 and riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
mogeko committed Aug 14, 2024
1 parent dabb0b9 commit 3f38d0d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,47 @@ jobs:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.7
- name: Log in to Docker Hub
uses: redhat-actions/podman-login@v1
uses: redhat-actions/podman-login@v1.7
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the GitHub Container Registry
uses: redhat-actions/podman-login@v1
uses: redhat-actions/podman-login@v1.7
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v5.5.1
with:
images: |
docker.io/${{ secrets.DOCKER_USERNAME }}/vlmcsd
ghcr.io/${{ github.actor }}/vlmcsd
tags: |
type=schedule,pattern={{date 'YYYYMMDD'}}
${{ needs.check.outputs.docker_tags }}
- name: Setup QEMU
uses: docker/[email protected]
id: qemu
with:
platforms: amd64,arm64,riscv64
- name: Build container with rootless by Buildah
uses: redhat-actions/buildah-build@v2
uses: redhat-actions/buildah-build@v2.13
id: build-image
with:
platforms: ${{ steps.qemu.outputs.platforms }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
containerfiles: ./Dockerfile
build-args: |
VERSION=${{ needs.check.outputs.stable_ver }}
layers: false
- name: Push to Container registry
uses: redhat-actions/push-to-registry@v2
uses: redhat-actions/push-to-registry@v2.8
with:
images: ${{ steps.build-image.outputs.image }}
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.7
- run: make build

0 comments on commit 3f38d0d

Please sign in to comment.