Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thedevs-network/kutt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxescure <xescure@outlook.com>2021-03-23 21:49:56 +0300
committerxescure <xescure@outlook.com>2021-03-23 21:49:56 +0300
commit71aadf646669f9718bf76077877663408a0d7cb7 (patch)
treeb14ef7dcfcc5fc0dad89f0301f98eee6bd5ca017
parent12c577c832c7f822746fce50bd5aef274d3fb3e0 (diff)
docker build via github actions
-rw-r--r--.github/workflows/docker-build.yaml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml
new file mode 100644
index 0000000..b80276e
--- /dev/null
+++ b/.github/workflows/docker-build.yaml
@@ -0,0 +1,50 @@
+name: docker-build
+
+on:
+ push:
+ branches:
+ - 'master'
+
+jobs:
+ dockerhub-build-push:
+ runs-on: ubuntu-latest
+ steps:
+ -
+ name: Checkout
+ uses: actions/checkout@v2
+ -
+ name: Set up QEMU
+ uses: docker/setup-qemu-action@v1
+ -
+ name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v1
+ -
+ name: Login to DockerHub
+ uses: docker/login-action@v1
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ -
+ name: Build and push
+ uses: docker/build-push-action@v2
+ with:
+ context: .
+ platforms: linux/amd64,linux/arm64,linux/arm/v7
+ push: true
+ tags: ${{ secrets.DOCKERHUB_REPOSITORY }}:latest
+
+ dockerhub-sync-readme:
+ needs: dockerhub-build-push
+ runs-on: ubuntu-latest
+ steps:
+ - name: Sync README
+ uses: docker://lsiodev/readme-sync:latest
+ env:
+ DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
+ DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
+ GIT_REPOSITORY: ${{ github.repository }}
+ DOCKER_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
+ GIT_BRANCH: master
+ with:
+ entrypoint: node
+ args: /opt/docker-readme-sync/sync