diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml new file mode 100644 index 0000000..c50d1d0 --- /dev/null +++ b/.gitea/workflows/pipeline.yml @@ -0,0 +1,25 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Log in to Docker Hub + run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin + + - name: Build Docker image + run: docker build -t gitea.fithwum.tech/${{ secrets.DOCKER_USERNAME }}/foundry_vtt:alpine . + + - name: Push Docker image + run: docker push gitea.fithwum.tech/${{ secrets.DOCKER_USERNAME }}/foundry_vtt:alpine + + - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file