diff --git a/.github/workflows/build_only.yml b/.github/workflows/build_only.yml new file mode 100644 index 00000000..0f33b3b0 --- /dev/null +++ b/.github/workflows/build_only.yml @@ -0,0 +1,19 @@ +name: Build only image +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + name: Build image job + steps: + - name: Checkout master + uses: actions/checkout@master + - name: Build image + uses: ilteoood/docker_buildx@master + with: + tag: latest,0.3.0 + platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7 + imageName: ${{ secrets.DOCKER_HUB_USER }}/webssh2 \ No newline at end of file diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml new file mode 100644 index 00000000..4e86fdcd --- /dev/null +++ b/.github/workflows/build_publish.yml @@ -0,0 +1,23 @@ +name: Build and publish image +on: + release: + types: [published] + schedule: + - cron: '0 6 * * 1' + +jobs: + build: + runs-on: ubuntu-latest + name: Build image job + steps: + - name: Checkout master + uses: actions/checkout@master + - name: Build and publish image + uses: ilteoood/docker_buildx@master + with: + tag: latest,0.3.0 + imageName: ${{ secrets.DOCKER_HUB_USER }}/webssh2 + platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7 + publish: true + dockerHubUser: ${{ secrets.DOCKER_HUB_USER }} + dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }} \ No newline at end of file