Skip to content

Commit

Permalink
fix(iptvboss): build from pr
Browse files Browse the repository at this point in the history
  • Loading branch information
groenator committed May 11, 2024
1 parent 0250543 commit a8ca1e3
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,37 +60,37 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image for x86
- name: Build and push Docker image for x86
id: build-and-push-x86
if: ${{ github.event_name != 'pull_request' }}
uses: docker/[email protected]
with:
context: .
build-args: |
LATEST_TAG=${{ env.LATEST_TAG }}
push: false
platforms: linux/amd64
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Build and push Docker image for ARM
- name: Build and push Docker image for ARM
id: build-and-push-arm
if: ${{ github.event_name != 'pull_request' }}
uses: docker/[email protected]
with:
context: .
build-args: |
LATEST_TAG=${{ env.LATEST_TAG }}
push: false
platforms: linux/arm64
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }}-arm
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# # Build and push Docker image for x86
# - name: Build and push Docker image for x86
# id: build-and-push-x86
# if: ${{ github.event_name != 'pull_request' }}
# uses: docker/[email protected]
# with:
# context: .
# build-args: |
# LATEST_TAG=${{ env.LATEST_TAG }}
# push: false
# platforms: linux/amd64
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

# # Build and push Docker image for ARM
# - name: Build and push Docker image for ARM
# id: build-and-push-arm
# if: ${{ github.event_name != 'pull_request' }}
# uses: docker/[email protected]
# with:
# context: .
# build-args: |
# LATEST_TAG=${{ env.LATEST_TAG }}
# push: false
# platforms: linux/arm64
# tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }}-arm
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

# Build and push Docker image for x86 (for pull requests)
- name: Build and push Docker image for x86 (PR)
Expand Down

0 comments on commit a8ca1e3

Please sign in to comment.