From 6480290ac3ed66468c9a1dd3b776a8a88a5f56a5 Mon Sep 17 00:00:00 2001 From: dilap54 Date: Sat, 23 Dec 2023 23:18:27 +0300 Subject: [PATCH] actions --- .gitea/workflows/build.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..51674cf --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,27 @@ +name: Build and push image + +on: + push: + branches: [master] + +jobs: + deploy: + runs-on: self-hosted + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: registry.home.4it.me + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: home.4it.me/${{ secrets.DOCKERHUB_USERNAME }}/platiparser:latest \ No newline at end of file