From 14ef5d6e12b57220b8e17b954b2340694ea85375 Mon Sep 17 00:00:00 2001 From: odidev Date: Tue, 31 Aug 2021 16:31:55 +0530 Subject: [PATCH] Release docker image for arm64. Signed-off-by: odidev --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3b93d52 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: ci + +on: + pull_request: + push: + branches: + - master + tags: + - v* + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Prepare + id: prepare + run: | + TAG=${GITHUB_REF##*/} + echo ::set-output name=tag_name::${TAG} + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login do docker.io + run: docker login -u logentries -p ${{ secrets.DOCKER_TOKEN }} + - name: build and publish image + id: docker_build + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: | + logentries/docker-logentries:${{ steps.prepare.outputs.tag_name }} + logentries/docker-logentries:latest diff --git a/Dockerfile b/Dockerfile index 70bfef1..ec61ba1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # # VERSION 0.2.0 -FROM node:0.12-onbuild +FROM node:8.17.0-onbuild MAINTAINER Rapid 7 - InsightOps WORKDIR /usr/src/app