From d7c154f7fe7b29d1fcdcba51350edb821cac27f7 Mon Sep 17 00:00:00 2001 From: Matteo Pietro Dazzi Date: Tue, 14 Jul 2020 11:59:28 +0200 Subject: [PATCH] Buildx docker image --- .github/workflows/build_only.yml | 19 +++++++++++++++++++ .github/workflows/build_publish.yml | 25 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/build_only.yml create mode 100644 .github/workflows/build_publish.yml diff --git a/.github/workflows/build_only.yml b/.github/workflows/build_only.yml new file mode 100644 index 0000000..a02310e --- /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/386,linux/arm/v7,linux/arm/v6 + imageName: ilteoood/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 0000000..cb65d9c --- /dev/null +++ b/.github/workflows/build_publish.yml @@ -0,0 +1,25 @@ +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: ilteoood/webssh2 + platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6 + publish: true + dockerHubUser: ${{ secrets.DOCKER_HUB_USER }} + dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }} + - name: Update badge + run: curl -X POST ${{ secrets.BADGE_UPDATE_URL }} \ No newline at end of file