diff --git a/.github/workflows/docker-dogbot.yml b/.github/workflows/docker-dogbot.yml new file mode 100644 index 0000000..4d6949e --- /dev/null +++ b/.github/workflows/docker-dogbot.yml @@ -0,0 +1,27 @@ +name: Build and Publish dogbot docker image + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Login to container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Get repository + uses: actions/checkout@v4 + - name: Docker Build and push + uses: docker/build-push-action@v6 + with: + file: Dockerfile.dogbot + context: . + push: true + tags: ghcr.io/qweri0p/dogbot-bot:latest + secrets: "github_token=${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/docker-pocketbase.yml b/.github/workflows/docker-pocketbase.yml new file mode 100644 index 0000000..4e84785 --- /dev/null +++ b/.github/workflows/docker-pocketbase.yml @@ -0,0 +1,27 @@ +name: Build and Publish pocketbase docker image + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Login to container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Get repository + uses: actions/checkout@v4 + - name: Docker Build and push + uses: docker/build-push-action@v6 + with: + file: Dockerfile.pocketbase + context: . + push: true + tags: ghcr.io/qweri0p/dogbot-pocketbase:latest + secrets: "github_token=${{ secrets.GITHUB_TOKEN }}"