Skip to content

Commit

Permalink
‣ Clean up github workflow scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Jul 31, 2023
1 parent 9e0262f commit c9a048f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/build_image.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
name: Build and Push Docker Image
name: Build and push image to Docker Hub

on:
push:
branches:
- main
release:
types: [created]

jobs:
build:
docker:
runs-on: ubuntu-latest

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

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

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

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

- name: Build and push Docker image
uses: docker/build-push-action@v2
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
push: true
tags: zeroxeli/readme-ai:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package to PyPI (readmeai)
name: Build and publish package to PyPI

on:
push:
Expand Down

0 comments on commit c9a048f

Please sign in to comment.