Create docker_build_push.yml
This commit is contained in:
parent
5e829391f4
commit
64d34370da
31
.github/workflows/docker_build_push.yml
vendored
Normal file
31
.github/workflows/docker_build_push.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Build and Push Multi-Arch Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/386,linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7
|
||||||
|
push: true
|
||||||
|
tags: ${{ secrets.DOCKERHUB_PROJECT }}
|
||||||
Loading…
x
Reference in New Issue
Block a user