Skip to content

Commit

Permalink
add a workflow to build the image
Browse files Browse the repository at this point in the history
  • Loading branch information
galdor committed Feb 8, 2024
1 parent bd4c86b commit 71746e9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/nfs-server.yaml
Original file line number Diff line number Diff line change
@@ -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@v4"
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 image push ghcr.io/normal-computing/nfs-server"

0 comments on commit 71746e9

Please sign in to comment.