diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..33c44a9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Test and Build + +on: + push: + branches: + - main + - add-action + +jobs: + + ghcr-image: + name: Build and push GHCR image + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Login + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push to GHCR + run: | + docker build . -t ghcr.io/pacoxu/slides-crawl:latest + docker push ghcr.io/pacoxu/slides-crawl:latest + + +