Skip to content

Commit

Permalink
modified: .github/workflows/docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamTatvamasi committed Feb 16, 2022
1 parent 0a88b3d commit 0252fea
Showing 1 changed file with 2 additions and 48 deletions.
50 changes: 2 additions & 48 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags:
- '*'
jobs:
docker-build-amd64:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -40,53 +40,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ steps.string.outputs.lowercase }}

docker-build-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Change String Case
id: string
uses: ASzc/change-string-case-action@v1
with:
string: ${{ github.repository }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ steps.string.outputs.lowercase }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
platforms: linux/arm64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 0252fea

Please sign in to comment.