Skip to content

Merge pull request #1399 from sundowndev/fix/docker-build #1

Merge pull request #1399 from sundowndev/fix/docker-build

Merge pull request #1399 from sundowndev/fix/docker-build #1

name: Docker Push latest
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
if: contains(toJson(github.event.commits), '[action]') == false
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/[email protected]
with:
context: .
push: true
tags: sundowndev/phoneinfoga:next
platforms: linux/amd64
- name: Display new image digest
run: echo "sundowndev/phoneinfoga@${{ steps.docker_build.outputs.digest }}"