diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index bea5acf..adc1e13 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,5 +1,28 @@ -- name: Build and Push - uses: actions/docker/build-push@v4 +name: Deploy Afropreunariat +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Registry + uses: docker/login-action@v2 + with: + registry: git.home.arrondeau.fr + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and Push + uses: docker/build-push-action@v4 with: context: . push: true