Skip to content

Add setup buildx step to dev-container workflow #25

Add setup buildx step to dev-container workflow

Add setup buildx step to dev-container workflow #25

Workflow file for this run

name: 'devcontainer CI'
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build_devcontainer:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Checkout from github
uses: actions/checkout@v3
- name: extract the github reference
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: "image name from repo name"
id: docker_image_name
run: echo "docker_image=${{ github.repository }}" | tr '[:upper:]' '[:lower:]' |sed 's/[^0-9,a-z,A-Z,=,_,\/]/-/g' >>${GITHUB_OUTPUT}
- name: setup buildx
uses: docker/setup-buildx-action@v2
- name: Build and run dev container task
uses: devcontainers/ci@v0.3
with:
imageName: devcontainer/${{ steps.docker_image_name.outputs.docker_image }}
configFile: ./.devcontainer/devcontainer.json
push: never
cacheFrom: type=gha
cacheTo: type=gha,mode=max