mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 10:09:33 +01:00
Use published image for faster runs
This commit is contained in:
parent
10975e2cec
commit
a39b849247
2 changed files with 29 additions and 1 deletions
22
.github/workflows/dockerimage.yaml
vendored
Normal file
22
.github/workflows/dockerimage.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Docker Image CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'Dockerfile'
|
||||||
|
- 'entrypoint.sh'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
DOCKER_IMAGE: ilirbekteshi/action-yamllint
|
||||||
|
DOCKER_FILE: Dockerfile
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: |
|
||||||
|
docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
docker build . --file $DOCKER_FILE -t $DOCKER_IMAGE:$GITHUB_SHA -t $DOCKER_IMAGE:latest
|
||||||
|
docker push $DOCKER_IMAGE:$GITHUB_SHA
|
||||||
|
docker push $DOCKER_IMAGE:latest
|
|
@ -21,7 +21,13 @@ inputs:
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'docker://ilirbekteshi/action-yamllint'
|
||||||
|
args:
|
||||||
|
- ${{ inputs.file_or_dir }}
|
||||||
|
- ${{ inputs.config_file }}
|
||||||
|
- ${{ inputs.config_data }}
|
||||||
|
- ${{ inputs.format }}
|
||||||
|
- ${{ inputs.strict }}
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
color: blue
|
color: blue
|
||||||
|
|
Loading…
Reference in a new issue