Skip to content

Commit

Permalink
tools: manual build (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
reliveyy authored Nov 3, 2020
1 parent c72b222 commit 70c04f6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: Auto Build

on: push

Expand All @@ -24,8 +24,6 @@ jobs:
with:
python-version: '3.9'
architecture: 'x64'
- name: Show Python version
run: python -c "import sys; print(sys.version)"
- name: Build and push
run: tools/push -p linux/amd64
build-arm64:
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Manual Build

on:
workflow_dispatch:
inputs:
images:
description: 'Images to build'
required: true

jobs:
build-amd64:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Build and push
run: tools/push -p linux/amd64 ${{ github.event.inputs.images }}
build-arm64:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Show Python version
run: python -c "import sys; print(sys.version)"
- name: Build and push
run: tools/push -p linux/arm64 ${{ github.event.inputs.images }}

0 comments on commit 70c04f6

Please sign in to comment.