Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.1.0 to 2.2.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v2.1.0...v2.2.0) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
name: Push container
|
|
jobs:
|
|
buildx:
|
|
name: Push branches and PRs
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'amir20/dozzle' }}
|
|
steps:
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
images: amir20/dozzle
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2.2.0
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v3.2.0
|
|
with:
|
|
push: true
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
build-args: TAG=${{ steps.meta.outputs.version }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
cache-from: type=registry,ref=amir20/dozzle:master
|
|
cache-to: type=inline
|