Skip to content

chore(deps): update devcontainer tools (#149) #3

chore(deps): update devcontainer tools (#149)

chore(deps): update devcontainer tools (#149) #3

name: Build hugo-bun-node
on:
push:
branches:
- master
paths:
- 'hugo-bun-node/.devcontainer/Dockerfile'
workflow_dispatch:
concurrency:
group: build-hugo-bun-node-${{ github.ref }}
cancel-in-progress: true
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
version-tag: ${{ steps.versions.outputs.version-tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Extract versions from Dockerfile
id: versions
run: |
DOCKERFILE="hugo-bun-node/.devcontainer/Dockerfile"
HUGO_VERSION=$(grep '^ARG HUGO_VERSION=' "$DOCKERFILE" | cut -d'=' -f2)
BUN_VERSION=$(grep '^ARG BUN_VERSION=' "$DOCKERFILE" | cut -d'=' -f2)
NODE_VERSION=$(grep '^ARG NODE_VERSION=' "$DOCKERFILE" | cut -d'=' -f2)
echo "version-tag=hugo${HUGO_VERSION}-bun${BUN_VERSION}-node${NODE_VERSION}-alpine" >> "$GITHUB_OUTPUT"
echo "Hugo: $HUGO_VERSION, Bun: $BUN_VERSION, Node: $NODE_VERSION"
build:
needs: prepare
permissions:
contents: read
packages: write
uses: ./.github/workflows/reusable-docker-build.yml
with:
image-name: devcontainers/hugo-bun-node
context: hugo-bun-node/.devcontainer
dockerfile: hugo-bun-node/.devcontainer/Dockerfile
version-tag: ${{ needs.prepare.outputs.version-tag }}
verify-command: 'bun --version && hugo version && node --version'
secrets: inherit