Bump actions/checkout from 3 to 4 #72
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: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- 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: ./cross/x86_64_armv7a/buster/Dockerfile | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: atom63/qt-docker:linux-buster-cross-x86_64-armv7a-qt | |
labels: ${{ steps.meta.outputs.labels }} |