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:
Diffstat (limited to '.github/workflows/docker-build-latest.yaml')
-rw-r--r--.github/workflows/docker-build-latest.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/docker-build-latest.yaml b/.github/workflows/docker-build-latest.yaml
new file mode 100644
index 0000000..8c26159
--- /dev/null
+++ b/.github/workflows/docker-build-latest.yaml
@@ -0,0 +1,43 @@
+name: docker-build-latest
+
+env:
+ dockerhub_repository: "xescure/kutt"
+ dockerhub_tag: "latest"
+
+on:
+ push:
+
+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: ${{ env.dockerhub_repository }}:${{ env.dockerhub_tag }}
+ -
+ name: Update repo description
+ uses: peter-evans/dockerhub-description@v2
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_PASSWORD }}
+ repository: ${{ env.dockerhub_repository }}