mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Add Docker build and push workflow
Use Github Actions to build and push image
This commit is contained in:
18
.github/workflows/docker.yml
vendored
Normal file
18
.github/workflows/docker.yml
vendored
Normal 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
|
Reference in New Issue
Block a user