Skip to content

Commit

Permalink
Add simple docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnett committed Oct 28, 2024
1 parent e25c51f commit a99fdbb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build Docker image

on:
push:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker build .
6 changes: 5 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e

DOTFILES_DIR="$HOME/.dotfiles"
ANSIBLE_PATH="$HOME/.local/bin"
PLAYBOOK_PATH="$DOTFILES_DIR/ansible/playbook.yml"

sudo pacman -S --needed --noconfirm git python-pipx
Expand All @@ -16,7 +17,10 @@ fi

if [ -f $PLAYBOOK_PATH ]
then
ansible-playbook $PLAYBOOK_PATH
echo $PATH
id -u -n
echo $USER
$ANSIBLE_PATH/ansible-playbook $PLAYBOOK_PATH
else
echo Ansible playbook not found at $PLAYBOOK_PATH
exit 1
Expand Down

0 comments on commit a99fdbb

Please sign in to comment.