Skip to content

Merge pull request #3 from nstankov-bg/snyk-fix-658d86f5d269cd638c98e… #14

Merge pull request #3 from nstankov-bg/snyk-fix-658d86f5d269cd638c98e…

Merge pull request #3 from nstankov-bg/snyk-fix-658d86f5d269cd638c98e… #14

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- master
- g1220-v1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Git checkout
uses: actions/checkout@v1
- name: Branch name
run: echo running on branch ${GITHUB_REF##*/}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Switch Buildx to Multi-Arch Mode
run: docker buildx create --use
- name: Build the Docker image
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t nikoogle/cups-airprint:${GITHUB_REF##*/} --push .