Skip to content

WIP: Make mock commit to test workflow #1

WIP: Make mock commit to test workflow

WIP: Make mock commit to test workflow #1

# This workflow tests building an OpenFAST docker image for the linux/amd64 architecture on push to a release candidate
# branch. The build cache is stored in GitHub actions.
name: test-build-docker-image
on:
pull_request:
branches:
- main
jobs:
test-build:
if: startsWith(github.head_ref, 'rc-')
runs-on: ubuntu-latest
timeout-minutes: 300
env:
DOCKERFILE_PATH: share/docker/openfast_ubuntu/Dockerfile
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract tag from release candidate branch name
id: extract-tag
run: echo "openfast-tag=${"${{ github.head_ref }}":3}" >> $GITHUB_OUTPUT
- name: Test building docker image
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.DOCKERFILE_PATH }}
platforms: linux/amd64
push: false
cache-from: type=gha
cache-to: type=gha,mode=max