Skip to content

Commit

Permalink
Use published image for faster runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibiqlik committed Dec 17, 2019
1 parent 10975e2 commit a39b849
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/dockerimage.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ inputs:

runs:
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:
color: blue
Expand Down

0 comments on commit a39b849

Please # to comment.