From 29d45d8cd4ecfc8b2b7a55ad5b56a473925c29fd Mon Sep 17 00:00:00 2001 From: Nicolas Martyanoff Date: Thu, 8 Feb 2024 11:16:05 +0100 Subject: [PATCH] add a workflow to build the image --- .github/workflows/nfs-server.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/nfs-server.yaml diff --git a/.github/workflows/nfs-server.yaml b/.github/workflows/nfs-server.yaml new file mode 100644 index 0000000..87dffa2 --- /dev/null +++ b/.github/workflows/nfs-server.yaml @@ -0,0 +1,30 @@ +name: "nfs-server" + +on: + - "push" + +jobs: + build: + if: "github.ref == 'refs/heads/main'" + runs-on: "ubuntu-latest" + timeout-minutes: 10 + steps: + - name: "Configure Ubuntu" + run: | + echo "dash dash/sh boolean false" | sudo debconf-set-selections + sudo dpkg-reconfigure dash + env: + DEBIAN_FRONTEND: "noninteractive" + - uses: "actions/checkout@v3" + with: + fetch-depth: 0 + - name: "Build the image" + run: "make image" + - name: "Log in to the container registry" + uses: "docker/login-action@v3" + with: + registry: "ghcr.io" + username: "${{github.actor}}" + password: "${{secrets.GITHUB_TOKEN}}" + - name: "Push the image to the repository" + run: "docker plugin push ghcr.io/normal-computing/nfs-server"