Skip to content

Commit

Permalink
Merge pull request #1 from danielsuguimoto/docker-arm
Browse files Browse the repository at this point in the history
[master] added docker workflow with ARM support
  • Loading branch information
dbpolito authored Apr 12, 2023
2 parents 5eb151e + ffc9d5b commit b166495
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: docker

on: [push, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@master

- name: Setup QEMU
uses: docker/setup-qemu-action@v2

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-puppeteer'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and export
uses: docker/build-push-action@v3
with:
load: true
tags: kooldev/puppeteer:1.0

- name: Build and push image
uses: docker/build-push-action@v3
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-puppeteer'
with:
platforms: linux/amd64,linux/arm64
push: true
tags: kooldev/puppeteer:1.0

0 comments on commit b166495

Please sign in to comment.