Skip to content

Commit

Permalink
Update master.yaml
Browse files Browse the repository at this point in the history
Disabling Arm build
  • Loading branch information
aalkhodiry authored Nov 12, 2024
1 parent 2264260 commit f96f208
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,49 +69,49 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build_arm64:
name: Build and Push Image for arm64
runs-on: ubuntu-arm64
environment: dev
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
# build_arm64:
# name: Build and Push Image for arm64
# runs-on: ubuntu-arm64
# environment: dev
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-arm
labels: |
maintainer=${{github.repository_owner}}
org.opencontainers.image.title=${{github.repository}}
org.opencontainers.image.description=This is ${{github.repository}} build from ${{github.ref_name}}
org.opencontainers.image.vendor=${{github.repository_owner}}
tags: |
type=semver,pattern={{version}}
type=ref,event=branch
# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: |
# ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-arm
# labels: |
# maintainer=${{github.repository_owner}}
# org.opencontainers.image.title=${{github.repository}}
# org.opencontainers.image.description=This is ${{github.repository}} build from ${{github.ref_name}}
# org.opencontainers.image.vendor=${{github.repository_owner}}
# tags: |
# type=semver,pattern={{version}}
# type=ref,event=branch

- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# - name: Login to Container Registry
# uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push the image
id: docker_build
uses: docker/build-push-action@v6
with:
context: ./
file: .docker/Dockerfile-build
push: true
platforms: linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# - name: Build and Push the image
# id: docker_build
# uses: docker/build-push-action@v6
# with:
# context: ./
# file: .docker/Dockerfile-build
# push: true
# platforms: linux/arm64
# tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f96f208

Please sign in to comment.