Skip to content

Commit

Permalink
try publish image
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Jul 21, 2023
1 parent 28ed5fe commit c752323
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
name: Upload Package to PyPI and Publish NWBPanel Docker Image

on:
# push:
# branches:
# - panel-fixes-and-improvements
release:
types: [published]
push:
branches:
- panel-fixes-and-improvements
# release:
# types: [published]

jobs:
publish-pypi:
Expand All @@ -33,27 +33,27 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

# release-nwbpanel-image:
# name: NWB Panel Image
# runs-on: ubuntu-latest
# needs: publish-pypi
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - 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: ${{ secrets.REPO_GITHUB_USERNAME }}
# password: ${{ secrets.REPO_GITHUB_TOKEN }}
# - name: Build and push
# uses: docker/build-push-action@v3
# with:
# push: true # Push is a shorthand for --output=type=registry
# tags: ghcr.io/neurodatawithoutborders/nwbwidgets-panel:latest
# context: docker
# file: docker/Dockerfile_publish
release-nwbpanel-image:
name: NWB Panel Image
runs-on: ubuntu-latest
needs: publish-pypi
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- 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: ${{ secrets.REPO_GITHUB_USERNAME }}
password: ${{ secrets.REPO_GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true # Push is a shorthand for --output=type=registry
tags: ghcr.io/neurodatawithoutborders/nwbwidgets-panel:latest
context: docker
file: docker/Dockerfile_publish
3 changes: 2 additions & 1 deletion docker/Dockerfile_publish
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM python:3.10
FROM python:3.10.12-slim
LABEL org.opencontainers.image.source=https://github.com/NeurodataWithoutBorders/nwbwidgets

COPY requirements.txt .
RUN pip install --upgrade pip \
Expand Down
2 changes: 1 addition & 1 deletion nwbwidgets/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.11.0"
version = "0.11.1"

0 comments on commit c752323

Please sign in to comment.