Skip to content

Commit

Permalink
add development docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
poeti8 committed Jan 16, 2025
1 parent 191e58b commit df7499c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docker-build-development.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: docker-build-latest

env:
dockerhub_repository: "kutt/kutt"
dockerhub_tag: "development"

on:
push:
branches:
- development

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:
platforms: linux/amd64,linux/arm64
context: .
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 }}

0 comments on commit df7499c

Please sign in to comment.