Skip to content

Commit

Permalink
setup ci to build docker images per PR (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored Apr 23, 2024
1 parent 5747ef1 commit 3ad3cf5
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-and-push-edge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and push edge tag

on:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- 'helm/**'
- 'assets/**'
- '**.md'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: parseable/penguin

- name: Build and push
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/penguin:edge
platforms: linux/amd64,linux/arm64

0 comments on commit 3ad3cf5

Please sign in to comment.