From de6bf3a468158f6858cca6abcbdab8c6d9710479 Mon Sep 17 00:00:00 2001 From: Ehsan Date: Wed, 27 Mar 2024 13:48:16 +0400 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..766a0cc --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,28 @@ +name: Build and Push Docker image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Log in to OVH Harbor + uses: docker/login-action@v1 + with: + registry: 6410l998.c1.gra9.container-registry.ovh.net + username: ${{ secrets.HARBOR_USERNAME }} + password: ${{ secrets.HARBOR_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: 6410l998.c1.gra9.container-registry.ovh.net/unstoppable/unstoppable:latest