Skip to content

Commit

Permalink
Mauwii test docker push (#17)
Browse files Browse the repository at this point in the history
* disable pushing the cloud container (invoke-ai#1831)

* test docker pushing from a fake main branch

* username and password required

* troubleshooting image building

* important change ...
...not xD

* even more important change

* anotherone rides the bus

* push main trigger enabled

Co-authored-by: Eugene Brodsky <[email protected]>
  • Loading branch information
mauwii and ebr authored Dec 6, 2022
1 parent b8e771d commit 5752359
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build-cloud-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ on:
push:
branches:
- main
- development
tags:
- v*
- ebr-test-docker-push ### This is a "fake main"
# tags:
# - v*

permissions:
contents: read
packages: write

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: invoke-ai/invokeai # shouldn't use ${{ github.repository }} due to capitalization

jobs:
docker:
Expand All @@ -34,12 +34,9 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ebr-test-delete-this
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -48,7 +45,7 @@ jobs:
name: Docker login
uses: docker/login-action@v2
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -59,5 +56,8 @@ jobs:
file: docker-build/Dockerfile.cloud
platforms: Linux/${{ matrix.arch }}
push: ${{ github.event_name != 'pull_request' }}
# push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

# mauwii even PR'ed here
2 changes: 2 additions & 0 deletions docker-build/Dockerfile.fake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM ubuntu:latest
RUN echo '---------------- here --------------'

0 comments on commit 5752359

Please sign in to comment.