Skip to content

Commit

Permalink
Releasing image for arm64
Browse files Browse the repository at this point in the history
Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev committed Feb 3, 2021
1 parent db4dab1 commit d28ff39
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
branches:
- main
- local_test
tags:
- v*

jobs:
test:
Expand Down Expand Up @@ -32,3 +35,31 @@ jobs:
-e "BUILD_NAME=$GITHUB_RUN_ID-$GITHUB_RUN_NUMBER"
concourse-slack-alert-resource:$GITHUB_RUN_ID-$GITHUB_RUN_NUMBER
/opt/resource/out $PWD
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 odidev -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: |
odidev/concourse-slack-alert-resource:${{ steps.prepare.outputs.tag_name }}
odidev/concourse-slack-alert-resource:latest

0 comments on commit d28ff39

Please sign in to comment.