Skip to content

Commit

Permalink
Fix pushing to dockerhub.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Aug 27, 2024
1 parent d5ef761 commit bae17b1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/rtpproxy_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ jobs:
fi
- name: Extract metadata (tags, labels) for Docker
id: meta1
id: meta_dkr
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_REPO }}
Expand All @@ -513,20 +513,17 @@ jobs:
type=sha,suffix=-${{ env.OS_TAG}}
- name: Extract metadata (tags, labels) for GHCR
id: meta2
id: meta_ghcr
uses: docker/metadata-action@v5
with:
images: ${{ env.GHCR_REPO }}
tags: |
${{ steps.meta1.outputs.tags }}
type=schedule,suffix=-${{ env.OS_TAG}}
type=ref,event=branch,suffix=-${{ env.OS_TAG}}
type=ref,event=tag,suffix=-${{ env.OS_TAG}}
type=ref,event=pr,suffix=-${{ env.OS_TAG}}
type=raw,value=latest-${{ env.OS_TAG}},enable={{is_default_branch}}
type=sha,suffix=-${{ env.OS_TAG}}
labels: |
${{ steps.meta1.outputs.labels }}
- name: Build Docker image
uses: docker/build-push-action@v6
Expand Down Expand Up @@ -570,8 +567,12 @@ jobs:
BASE_IMAGE=${{ env.BASE_IMAGE }}
BUILD_IMAGE=${{ env.BUILD_IMAGE }}
push: true
tags: ${{ steps.meta2.outputs.tags }}
labels: ${{ steps.meta2.outputs.labels }}
tags: |
${{ steps.meta_dkr.outputs.tags }}
${{ steps.meta_ghcr.outputs.tags }}
labels: |
${{ steps.meta_dkr.outputs.labels }}
${{ steps.meta_ghcr.outputs.labels }}
platforms: ${{ env.PLATFORMS }}

- name: Update DockerHub repo description
Expand Down

0 comments on commit bae17b1

Please sign in to comment.