Skip to content

Feature: Add a project launcher #67 #13

Feature: Add a project launcher #67

Feature: Add a project launcher #67 #13

name: Build and Publish Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/fast-music-remover:latest .
- name: Push Docker Image
if: github.event_name == 'push'
run: |
docker push ghcr.io/${{ github.repository_owner }}/fast-music-remover:latest