Skip to content

Merge pull request #10 from AjayRahul1/develop #29

Merge pull request #10 from AjayRahul1/develop

Merge pull request #10 from AjayRahul1/develop #29

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USERNAME }}/music-composition:${{ github.sha }}
- name: Login to Docker
run: echo "${{ secrets.DOCKER_PWD_TOKEN }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Push Docker Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/music-composition:${{ github.sha }}