featue: try to add docker image auto-build

This commit is contained in:
winkidney
2022-04-23 06:41:26 -07:00
parent 8a7cb756dc
commit 56b28086fb

24
.github/workflows/build-docker.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: build our image
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: login to docker hub
run: echo "${{ secrets.PINRY_DOCKER_PASSWORD }}" | docker login -u "${{ secrets.PINRY_DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
bash docker/build_docker_multiple_platform.sh