Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seemywingz committed May 23, 2024
1 parent 324be67 commit 4d9125f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Ponder
-------
###### OpenAI Powered Chat Tool
[![main](https://github.com/pluralsh/pluralia/actions/workflows/dockerBuildX.yml/badge.svg?branch=main)](https://github.com/pluralsh/pluralia/actions/workflows/dockerBuildX.yml)

51 changes: 51 additions & 0 deletions .github/workflows/dockerBuildX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Docker BuildX

on:
push:
branches:
- "develop"
tags:
- "**"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: GitHub Checkout
uses: actions/checkout@v3

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

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

- name: Docker Login
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 4d9125f

Please sign in to comment.