Skip to content

docker-pre-commit-ubuntu-2204 performed by @ywwu928 #549

docker-pre-commit-ubuntu-2204 performed by @ywwu928

docker-pre-commit-ubuntu-2204 performed by @ywwu928 #549

Workflow file for this run

# SPDX-License-Identifier: MIT
# Copyright (c) 2023. University of Texas at Austin. All rights reserved.
name: Docker / Ubuntu 22.04 / pre-commit
run-name: docker-pre-commit-ubuntu-2204 performed by @${{ github.triggering_actor }}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker-pre-commit-ubuntu-2204:
name: pre-commit
runs-on: self-hosted
permissions:
contents: read
packages: write
env:
IMAGE_NAME: pando
CONTAINER_SRC_DIR: "/pando"
CONTAINER_BUILD_DIR: "/pando/dockerbuild"
CONTAINER_WORK_DIR: "/pando"
INTERACTIVE: ""
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up environment variables
timeout-minutes: 1
run: |
echo "SRC_DIR=$(pwd)" >> $GITHUB_ENV
echo "IMAGE_VERSION=$(git log --pretty="%h" -1 Dockerfile.dev)" >> $GITHUB_ENV
cat $GITHUB_ENV
- name: Check pre-commit
timeout-minutes: 10
run: |
IMAGE_NAME="${{ env.IMAGE_NAME }}" \
VERSION="${{ env.IMAGE_VERSION }}" \
make docker-pre-commit