Skip to content

Commit

Permalink
Make image name the github repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
FlexibleToast committed Jul 25, 2023
1 parent 1a34b58 commit aa600e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
schedule:
- cron: '0 3 * * *'
push:
branches: [ "main" ]
branches: [ "repo-as-variable" ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# github.repository as <account>/<repo>
IMAGE_NAME: universonic/stable-diffusion-webui
IMAGE_NAME: ${{ github.repository }}


jobs:
Expand Down Expand Up @@ -47,6 +47,9 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set image name to lowercase
run: echo "IMAGE_NAME=$(echo "$IMAGE_NAME" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
Expand Down

0 comments on commit aa600e2

Please sign in to comment.