Skip to content

Bump docker/metadata-action from 4.6.0 to 5.0.0 #75

Bump docker/metadata-action from 4.6.0 to 5.0.0

Bump docker/metadata-action from 4.6.0 to 5.0.0 #75

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 }}