diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml new file mode 100644 index 0000000..42456b0 --- /dev/null +++ b/.github/workflows/image.yml @@ -0,0 +1,18 @@ +name: Build container image +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - run: docker buildx build . -t ghcr.io/rramiachraf/dumb:latest + - run: docker push ghcr.io/rramiachraf/dumb:latest