Skip to content

Merge pull request #55 from thijstakken/develop #14

Merge pull request #55 from thijstakken/develop

Merge pull request #55 from thijstakken/develop #14

name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
# set the environment for the secrets
environment: dockerhub
steps:
- uses: actions/checkout@v3
- name: Remove unneeded .gitkeep file
run: rm ./example-music/.gitkeep
#- name: Build the Docker image
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images
# You may pin to the exact commit or the version.
# uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
uses: docker/build-push-action@v3.2.0
with:
context: .
# List of metadata for an image
labels: |
version=1.0
maintainer=ThijsTakken
# set push
push: true
# List of tags
tags: thijstakken/musicservice:latest