Skip to content

Latest

Latest #14

# This is a basic workflow to help you get started with Actions
name: "CI spark-3.2.0_rhel"
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
paths:
- "applications/diem-spark/**/*spark-3.2.0_rhel*"
pull_request:
branches: [main]
paths:
- "applications/diem-spark/**/*spark-3.2.0_rhel*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
defaults:
run:
working-directory: applications/diem-spark
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Login to quay.io
run: echo "${{secrets.DOCKER_QUAY}}" | docker login -u="diem+ibm_deploy_robot" --password-stdin quay.io
- name: Build the Docker image
run: docker build . --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --file images/Dockerfile.spark-3.2.0_rhel --tag quay.io/diem/spark:3.2.0_rhel
- name: Push the Docker image
run: docker push quay.io/diem/spark:3.2.0_rhel
if: github.event_name == 'push' && github.ref == 'refs/heads/main'