Skip to content

Update docker/setup-qemu-action action to v3 #32

Update docker/setup-qemu-action action to v3

Update docker/setup-qemu-action action to v3 #32

Workflow file for this run

name: ci
on:
push:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ '*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: knoppiks/keepalived
- name: Build and push
uses: docker/build-push-action@v5
if: github.event_name != 'pull_request'
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Build
uses: docker/build-push-action@v5
if: github.event_name == 'pull_request'
with:
context: .