Skip to content

Commit

Permalink
Test docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Dedden committed Feb 29, 2024
1 parent 60d19eb commit 411f284
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Create and publish manylinux Docker image

on:
push:
tags:
- '*'
branches:
- develop
- ci/*

pull_request:
types:
- opened
- synchronize
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check Out Repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
builder: ${{ steps.buildx.outputs.name }}
push: false
tags: ghci.io/${{ github.repository }}-manylinux_2_28_${{ runner.arch }}:latest
build-args: |
TARGET_ARCH=${{ runner.arch }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 411f284

Please sign in to comment.