Skip to content

Update build.yml

Update build.yml #3

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- id: lower-repo
run: |
echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
- name: Build and Push Multi-Arch Image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
docker.io/${{ steps.lower-repo.outputs.repository }}:latest
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le