diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1ab7e54 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: "Docker" + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + name: Build PagerMaid Image + steps: + - name: Checkout master + uses: actions/checkout@master + - name: Build and publish image + uses: ilteoood/docker_buildx@master + with: + publish: true + imageName: mrwangzhe/pagermaid_modify + dockerFile: Dockerfile + platform: linux/amd64,linux/arm64,linux/arm/v7 + tag: latest + dockerUser: ${{ secrets.DOCKER_USERNAME }} + dockerPassword: ${{ secrets.DOCKER_PASSWORD }}