From 57bdbca8b8a4038f2bd59fee81235ea228a54fe0 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Sun, 7 Apr 2024 13:56:27 +0200 Subject: [PATCH] Start CI --- .github/workflows/docker-build.yml | 30 ++++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/docker-build.yml create mode 100644 .gitignore diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..dff8840 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,30 @@ +name: Build and Push Docker Image to GitHub Packages + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v2 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository }}/monapp:latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd1b092 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea/ +*.iml \ No newline at end of file