stop building arm for now

This commit is contained in:
Gustavo Maronato 2023-08-26 11:49:00 -03:00
parent 1a3df61b6c
commit fb725170f4
Signed by: maronato
SSH Key Fingerprint: SHA256:2Gw7kwMz/As+2UkR1qQ/qYYhn+WNh3FGv6ozhoRrLcs

View File

@ -4,36 +4,31 @@ name: Build
on: on:
push: push:
branches: branches:
- 'main' - "main"
tags: tags:
- 'v*' - "v*"
pull_request: pull_request:
branches: branches:
- 'main' - "main"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - # Get the repository's code
# Get the repository's code
name: Checkout name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- - # https://github.com/vegardit/docker-gitea-act-runner/issues/23
# https://github.com/vegardit/docker-gitea-act-runner/issues/23
name: Fix docker sock permissions name: Fix docker sock permissions
run: sudo chmod 666 /var/run/docker.sock run: sudo chmod 666 /var/run/docker.sock
- - # https://github.com/docker/setup-qemu-action
# https://github.com/docker/setup-qemu-action
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- - # https://github.com/docker/setup-buildx-action
# https://github.com/docker/setup-buildx-action
name: Set up Docker Buildx name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- - # https://github.com/docker/login-action
# https://github.com/docker/login-action
name: Log in to the Container registry name: Log in to the Container registry
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
@ -44,8 +39,7 @@ jobs:
# Gitea is having issues with that. For now, this is a manually created # Gitea is having issues with that. For now, this is a manually created
# token available user-wise, with the "package:write" permission. # token available user-wise, with the "package:write" permission.
password: ${{ secrets.PACKAGE_WRITE_TOKEN }} password: ${{ secrets.PACKAGE_WRITE_TOKEN }}
- - # https://github.com/docker/metadata-action
# https://github.com/docker/metadata-action
# Generate tags and labels for the image # Generate tags and labels for the image
# according to the commit and the branch # according to the commit and the branch
name: Docker meta name: Docker meta
@ -60,8 +54,7 @@ jobs:
type=ref,event=pr type=ref,event=pr
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
- - # httos://github.com/actions/cache
# httos://github.com/actions/cache
name: Configure cache name: Configure cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -73,13 +66,13 @@ jobs:
key: ${{ runner.os }}-build- key: ${{ runner.os }}-build-
restore-keys: | restore-keys: |
${{ runner.os }}-build- ${{ runner.os }}-build-
- - # https://github.com/docker/build-push-action
# https://github.com/docker/build-push-action
name: Build and push name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 # platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}