Initial commit
This commit is contained in:
30
.gitea/workflows/test-python-docker-build.yml
Normal file
30
.gitea/workflows/test-python-docker-build.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Test Python Docker Build
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Test Python"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
build_image:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: false
|
||||
platforms: linux/amd64
|
||||
tags: test-build:${{ github.sha }}
|
||||
Reference in New Issue
Block a user