mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
45 lines
1 KiB
YAML
45 lines
1 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 #
|
||
|
#######################################
|
||
|
on: ["push"]
|
||
|
# Only run when the push is on master
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
###############
|
||
|
# Set the Job #
|
||
|
###############
|
||
|
jobs:
|
||
|
env:
|
||
|
# Set the Env Vars
|
||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||
|
IMAGE_REPO: admiralawkbar/super-linter
|
||
|
IMAGE_VERSION: latest
|
||
|
DOCKERFILE_PATH: Dockerfile
|
||
|
build:
|
||
|
# Name the Job
|
||
|
name: Deploy Docker Image
|
||
|
# Set the agent to run on
|
||
|
runs-on: ubuntu-latest
|
||
|
##################
|
||
|
# Load all steps #
|
||
|
##################
|
||
|
steps:
|
||
|
# Run Deploy script
|
||
|
- name: Deploy image to DockerHub
|
||
|
shell: bash
|
||
|
run: .automation/upload-docker.sh
|