Skip to content

Commit 10c5566

Browse files
committed
Properly apt-get install inn2 in a GitHub Action.
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.
1 parent 1643b4c commit 10c5566

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Demonstrate how to properly `apt-get install inn2` in a GitHub Action.
2+
# Configure the inn2 instance so that other code can test interactions with the inn2 server.
3+
4+
name: apt-get_install_inn2
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
workflow_dispatch:
11+
jobs:
12+
apt-get_install_inn2:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- run: |
19+
echo "localhost.localdomain" > hostname
20+
sudo mv hostname /etc/
21+
cat /etc/hostname
22+
- run: |
23+
sudo apt-get update -qq
24+
sudo apt-get install --yes inn2
25+
- run: cat /etc/news/inn.conf
26+
- run: systemctl status inn2

support/mkmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ __DATA__
7171
7272
# The following additional files should be ignored. The file names are
7373
# relative to the root of the tree. Shell wildcards are supported.
74+
.github/workflows/atp-get_install_inn2.yaml
7475
BOOTSTRAP
7576
LIST.*
7677
Makefile.global

0 commit comments

Comments
 (0)