Skip to content

Commit

Permalink
Require image for ARM64 architecture
Browse files Browse the repository at this point in the history
Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev committed Aug 24, 2021
1 parent 709ffb6 commit 7d16618
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ci

on:
pull_request:
push:
branches:
- local_testing
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 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-consul-kv-resource:${{ steps.prepare.outputs.tag_name }}
odidev/concourse-consul-kv-resource:latest

0 comments on commit 7d16618

Please sign in to comment.