This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8b4b1e
commit c8bf12d
Showing
39 changed files
with
74 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: publish-package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
ghcr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set meta info | ||
id: set-meta | ||
run: | | ||
echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
echo ::set-output name=repo::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2.2.1 | ||
with: | ||
install: true | ||
- name: Log in to GHCR | ||
uses: docker/login-action@v2.1.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build Image and Push to GHCR | ||
uses: docker/build-push-action@v3.2.0 | ||
with: | ||
file: ./docker/Dockerfile | ||
pull: true | ||
push: true | ||
labels: | | ||
org.opencontainers.image.source=https://github.com/${{ github.repository }} | ||
tags: | | ||
ghcr.io/${{ steps.set-meta.outputs.repo }}:latest | ||
ghcr.io/${{ steps.set-meta.outputs.repo }}:${{ steps.set-meta.outputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ghcr.io/joshkarpel/spiel:v0.4.2 | ||
|
||
RUN : \ | ||
&& apt-get update \ | ||
&& apt-get install -y libasound2-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& : | ||
|
||
WORKDIR /app | ||
|
||
COPY .. /app/pytest-its-whats-for-testing | ||
RUN pip install --no-cache-dir /app/pytest-its-whats-for-testing | ||
|
||
CMD ["spiel", "present", "pytest-its-whats-for-testing/pytest_its_whats_for_testing/slides.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
TAG="pytest-its-whats-for-testing:test" | ||
|
||
docker build -f docker/Dockerfile -t "$TAG" . | ||
docker run -it --rm "$TAG" $@ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.