mirror of
https://github.com/pinry/pinry.git
synced 2026-01-24 08:09:21 +01:00
featue: try to add docker image auto-build
This commit is contained in:
24
.github/workflows/build-docker.yml
vendored
Normal file
24
.github/workflows/build-docker.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user