Skip to content

Docker

Docker #7

name: Docker
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch:
# push:
# branches: [ "main" ]
# # Publish semver tags as releases.
# tags: [ 'v*.*.*' ]
# pull_request:
# branches: [ "main" ]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
steps:
- name: Checkout other repo
uses: actions/checkout@v4
with:
repository: apache/hadoop
path: hadoop-3.3 # Store in $GITHUB_WORKSPACE/other-repo
ref: branch-3.3
- name: Run Hadoop Dev Container
run: |
cd hadoop-3.3
./start-build-env.sh
- name: Build Hadoop
run: |
mvn package -Pdist -DskipTests -Dtar -Dmaven.javadoc.skip=true