add docker CI

This commit is contained in:
coco 2021-05-25 17:40:09 +02:00 committed by GitHub
parent e8ac3e779c
commit 89e8c9c92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: example-docker-ci
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: k0rventen/netbox-device-type-library-import:latest
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}