Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
web3nomad committed Sep 8, 2023
1 parent bd8a567 commit dc10033
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/webui-router.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: WebUI Router

on: workflow_dispatch

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: setup versioning
id: vars
run: |
build_version="$(git rev-parse --short HEAD)"
echo "build_version=$build_version" >> $GITHUB_OUTPUT
- name: Build and push WebUI Router
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/bmrlab/stable-diffusion-webui/webui-router:latest
ghcr.io/bmrlab/stable-diffusion-webui/webui-router:${{ steps.vars.outputs.build_version }}
platforms: linux/amd64

0 comments on commit dc10033

Please sign in to comment.