1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Add Docker build and push workflow

Use Github Actions to build and push image
This commit is contained in:
Hugo Lindström
2019-12-24 12:53:37 +08:00
committed by GitHub
parent 27e8a665cf
commit 372ad91db4

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

@@ -0,0 +1,18 @@
name: Docker Image CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build the Docker image
run: cd Docker && docker build . --file Dockerfile --tag ubuntu:latest
- name: Push the latest Docker image
run: docker push tomahawkmusicplayer/ubuntu:latest