Add tests to the bootstrap script for Ubuntu in GHA first

Also some chores on my custom Ubuntu container image for the tests.

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-06-11 19:30:33 +08:00
parent f54b6dce12
commit ddbae29707
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,27 @@
name: Bootstrap Script CI
on:
push:
workflow_dispatch:
jobs:
ubuntu-gha:
name: Ubuntu 22.04 - GitHub Actions VM
runs-on: ubuntu-22.04
steps:
- run: curl -fsSL https://github.com/ajhalili2006/dotfiles/raw/main/bootstrap | bash -
env:
STORJ_ACCESS_GRANT: ${{secrets.STORJ_ACCESS_GRANT}}
ubuntu-docker:
name: Ubuntu 22.04 - Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: DOCKER_BUILDKIT=1 docker build -f tests/ubuntu/Dockerfile -t ajhalili2006/dotfiles-testing-rig tests
- run: docker run --rm --volume $PWD/exec-log.txt:/var/tests/exec-log.txt -u 1000 -e STORJ_ACCESS_GRANT ajhalili2006/dotfiles-testing-rig "curl -fsSL https://github.com/ajhalili2006/dotfiles/raw/main/bootstrap | bash -"
env:
STORJ_ACCESS_GRANT: ${{secrets.STORJ_ACCESS_GRANT}}
USE_PYENV: "1"
USE_NVM: "1"
#FF_LEGACY_DOTFILES_SECRETS_REPO: "1"
#FF_SETUP_HOMEBREW: "1"

View File

@ -10,8 +10,8 @@ USER root
ARG DOCKER_UID=1000
# Copy our scripts to their destinations
COPY ../common/bin/logger.sh /usr/bin/entrypoint.sh
COPY ./bin/install-packages /usr/bin/install-packages
COPY common/bin/logger.sh /usr/bin/entrypoint.sh
COPY ubuntu/bin/install-packages /usr/bin/install-packages
# Install deps in noninteractive mode.
ARG DEBIAN_FRONTEND=noninteractive