chore(deps): update alpine docker tag to v3.21.2 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build and test `verlihub` container image | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "verlihub/**" | |
workflow_dispatch: | |
jobs: | |
# create-runner: | |
# name: Create self-hosted Actions runner | |
# runs-on: ubuntu-24.04 | |
# steps: | |
# - name: Create runner | |
# uses: MattKobayashi/[email protected] | |
# with: | |
# gh-api-token: ${{ secrets.GH_API_TOKEN }} | |
# gha-runner-apt-mirror: http://mirror.overthewire.com.au/ubuntu/ | |
# gha-runner-labels: verlihub | |
# gha-runner-tz: Australia/Brisbane | |
# ssh-host: 100.102.37.118 | |
# ssh-user: matthew | |
# ts-oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} | |
# ts-oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} | |
# ts-tag: ci | |
build-setup: | |
name: Set up build environment | |
runs-on: ubuntu-24.04 | |
outputs: | |
repo-owner: ${{ steps.repo-lowercase.outputs.REPO_OWNER }} | |
steps: | |
- name: Convert repository owner name to lowercase | |
id: repo-lowercase | |
run: | | |
echo "REPO_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_OUTPUT | |
build-test: | |
name: Build and test image | |
# runs-on: verlihub | |
runs-on: ubuntu-24.04 | |
needs: [build-setup] | |
strategy: | |
fail-fast: false | |
max-parallel: 1 | |
matrix: | |
container: [verlihub] | |
steps: | |
# Checkout repository | |
# https://github.com/actions/checkout | |
- name: Checkout repository | |
uses: actions/[email protected] | |
# Build and start image | |
- name: Build and start image | |
run: | | |
set -x | |
docker compose up --detach | |
working-directory: verlihub | |
# Wait for container to start and run | |
- name: Wait for container to start and run | |
run: | | |
set -x | |
sleep 60 | |
# Grab the container logs | |
- name: Grab container logs | |
run: | | |
set -x | |
docker compose logs verlihub | |
working-directory: verlihub | |
# Stop and remove containers | |
- name: Stop and remove container | |
run: | | |
set -x | |
docker compose down | |
working-directory: verlihub |