yamllint/.github/workflows/dockerimage.yml

23 lines
625 B
YAML
Raw Permalink Normal View History

2019-12-17 12:47:12 +01:00
name: Docker Image CI
on:
2019-12-17 12:47:12 +01:00
push:
branches:
- master
paths:
- 'Dockerfile'
- 'entrypoint.sh'
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_IMAGE: ilirbekteshi/action-yamllint
DOCKER_FILE: Dockerfile
steps:
2020-08-25 11:40:50 +02:00
- 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