Merge pull request #106 from thijstakken/Release/2024.11 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 |