Bump docker/login-action from 2.2.0 to 3.0.0 #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |