new: Publish to dockerhub

pull/81/head
Raphaël Vinot 2020-08-13 17:27:50 +02:00
parent b6c6c7756e
commit 3cad522e4f
1 changed files with 13 additions and 7 deletions

View File

@ -1,14 +1,20 @@
name: Docker Image CI
name: Push to docker hub
on: [push]
jobs:
build:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: lookyloo/lookyloo
tags: latest