ci: Fix failing Docker release by removing arm/v6 and arm/v7 support (#8977)
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -123,14 +123,14 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64, linux/arm64/v8
|
||||||
check-lock-file-version:
|
check-lock-file-version:
|
||||||
name: NPM Lock File Version
|
name: NPM Lock File Version
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|||||||
12
.github/workflows/release-automated.yml
vendored
12
.github/workflows/release-automated.yml
vendored
@@ -56,18 +56,18 @@ jobs:
|
|||||||
ref: ${{ needs.release.outputs.current_tag }}
|
ref: ${{ needs.release.outputs.current_tag }}
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Log into Docker Hub
|
- name: Log into Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
flavor: |
|
flavor: |
|
||||||
@@ -75,10 +75,10 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},value=${{ needs.release.outputs.current_tag }}
|
type=semver,pattern={{version}},value=${{ needs.release.outputs.current_tag }}
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
|
platforms: linux/amd64, linux/arm64/v8
|
||||||
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 }}
|
||||||
|
|||||||
12
.github/workflows/release-manual-docker.yml
vendored
12
.github/workflows/release-manual-docker.yml
vendored
@@ -28,18 +28,18 @@ jobs:
|
|||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Log into Docker Hub
|
- name: Log into Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
flavor: |
|
flavor: |
|
||||||
@@ -48,10 +48,10 @@ jobs:
|
|||||||
type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }}
|
type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }}
|
||||||
type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest
|
type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
|
platforms: linux/amd64, linux/arm64/v8
|
||||||
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 }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
############################################################
|
############################################################
|
||||||
# Build stage
|
# Build stage
|
||||||
############################################################
|
############################################################
|
||||||
FROM node:lts-alpine AS build
|
FROM node:18-alpine AS build
|
||||||
|
|
||||||
RUN apk --no-cache add git
|
RUN apk --no-cache add git
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
@@ -24,7 +24,7 @@ RUN npm ci --omit=dev --ignore-scripts \
|
|||||||
############################################################
|
############################################################
|
||||||
# Release stage
|
# Release stage
|
||||||
############################################################
|
############################################################
|
||||||
FROM node:lts-alpine AS release
|
FROM node:18-alpine AS release
|
||||||
|
|
||||||
VOLUME /parse-server/cloud /parse-server/config
|
VOLUME /parse-server/cloud /parse-server/config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user