From 413a1fb0f822ff305a390b403d0492cbbf908bb3 Mon Sep 17 00:00:00 2001 From: Achraf RRAMI <51409801+rramiachraf@users.noreply.github.com> Date: Wed, 13 Mar 2024 23:30:56 +0000 Subject: [PATCH] ci: create Github Action to push image to ghcr --- .github/workflows/image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/image.yml 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