Skip to content

Bump docker/build-push-action from 4.1.1 to 5.1.0 #78

Bump docker/build-push-action from 4.1.1 to 5.1.0

Bump docker/build-push-action from 4.1.1 to 5.1.0 #78

name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build the Docker image
uses: actions/checkout@v3
- name: Login to docker hub
uses: docker/[email protected]
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
uses: docker/[email protected]
id: meta
with:
images: atom63/qt-docker
- name: Build and push
uses: docker/[email protected]
with:
file: ./x86_64/buster/Dockerfile
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: atom63/qt-docker:linux-buster-x86_64-qt5
labels: ${{ steps.meta.outputs.labels }}