Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build and push to Docker Hub
uses: docker/build-push-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: mltframework/melt
tag_with_ref: true

- name: Push to GitHub Packages
uses: docker/build-push-action@v1
- name: Login to GitHub Packages
uses: docker/login-action@v4
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: mltframework/mlt/melt
tag_with_ref: true

- name: Build and push
uses: docker/build-push-action@v7
with:
push: true
tags: |
mltframework/melt:${{ github.ref_name }}
docker.pkg.github.com/mltframework/mlt/melt:${{ github.ref_name }}