Skip to content

Commit

Permalink
Properly apt-get install inn2 in a GitHub Action.
Browse files Browse the repository at this point in the history
Demonstrate how to properly `apt-get install inn2` in a GitHub Action.
Configure the inn2 instance so that other code can test interactions with the inn2 server.

Much of this project's documentation covers how to build inn2 from source.  It would be helpful if there were working examples of how to `apt-get install inn2` in Docker or in a GitHub Action.  I have been struggling to do so for a few hours without success.
  • Loading branch information
cclauss committed Sep 15, 2024
1 parent 1643b4c commit 10c5566
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/atp-get_install_inn2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Demonstrate how to properly `apt-get install inn2` in a GitHub Action.
# Configure the inn2 instance so that other code can test interactions with the inn2 server.

name: apt-get_install_inn2
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
apt-get_install_inn2:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: |
echo "localhost.localdomain" > hostname
sudo mv hostname /etc/
cat /etc/hostname
- run: |
sudo apt-get update -qq
sudo apt-get install --yes inn2
- run: cat /etc/news/inn.conf
- run: systemctl status inn2
1 change: 1 addition & 0 deletions support/mkmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ __DATA__
# The following additional files should be ignored. The file names are
# relative to the root of the tree. Shell wildcards are supported.
.github/workflows/atp-get_install_inn2.yaml
BOOTSTRAP
LIST.*
Makefile.global
Expand Down

0 comments on commit 10c5566

Please sign in to comment.