mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-07 01:35:53 -05:00
56609617a9
Dependabot will update these automatically
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
---
|
|
#########################
|
|
#########################
|
|
## Deploy Docker Image ##
|
|
#########################
|
|
#########################
|
|
|
|
#
|
|
# Documentation:
|
|
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
#
|
|
|
|
#######################################
|
|
# Start the job on all push to master #
|
|
#######################################
|
|
#############################
|
|
# Start the job on all push #
|
|
#############################
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'master'
|
|
pull_request: []
|
|
|
|
###############
|
|
# Set the Job #
|
|
###############
|
|
jobs:
|
|
build:
|
|
# Name the Job
|
|
name: Deploy Docker Image - DEV
|
|
# Set the agent to run on
|
|
runs-on: ubuntu-latest
|
|
# Prevent duplicate run from happening when a forked push is committed
|
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
|
##################
|
|
# Load all steps #
|
|
##################
|
|
steps:
|
|
##########################
|
|
# Checkout the code base #
|
|
##########################
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
###################################
|
|
# Build image locally for testing #
|
|
###################################
|
|
- name: Build image
|
|
shell: bash
|
|
run: docker build --no-cache -t github/super-linter:${GITHUB_SHA} .
|
|
|
|
################################
|
|
# Run Linter against code base #
|
|
################################
|
|
- name: Run Test Cases
|
|
shell: bash
|
|
run: docker run -e RUN_LOCAL=true -e TEST_CASE_RUN=true -v ${GITHUB_WORKSPACE}:/tmp/lint github/super-linter:${GITHUB_SHA}
|