From 76c8ccbe7fbc0ec495075cc147fadcc17f0c39bb Mon Sep 17 00:00:00 2001 From: kasra Date: Tue, 30 Jan 2024 22:19:23 +0330 Subject: [PATCH] Add github build & push action --- .github/workflows/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c0fcaee --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,29 @@ +name: build + +on: + push: + branches: + - '*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: kysre/johar:latest