Skip to content

Commit

Permalink
Create docker-build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: AMJID DADER <amjiddader@gmail.com>
  • Loading branch information
amjiddader authored Feb 1, 2025
1 parent 6b06952 commit 9fd0998
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dockerr

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build Docker image
run: docker build -t ghcr.io/${{ github.repository_owner }}/music:latest .

- name: Push Docker image
run: docker push ghcr.io/${{ github.repository_owner }}/music:latest

0 comments on commit 9fd0998

Please sign in to comment.