Skip to content

Commit

Permalink
build container on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
matyson committed Apr 29, 2024
1 parent 7f49fdb commit e0d0033
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# build and publish docker image to ghcr
name: tb_waiter
on:
push:
tags:
- "v*"
branches:
- main
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
TAG: ${{ github.ref_name }}
REGISTRY: ghcr.io/${{ github.repository_owner }}
IMAGE_NAME: ${{ github.repository }}
HOSTNAME: localhost
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build app image
run: docker build -t $REGISTRY/$IMAGE_NAME:$TAG .

- name: Login to ghcr
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
run: docker push $REGISTRY/$IMAGE_NAME:$TAG
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Simple api to manage tensorboard instances on demand.
- [x] clean up idle tensorboards
- [x] background tasks to clean up tensorboards
- [x] security token on api routes
- [] secure tensorboard instances ?
- [] test connection w/ frontend
- [] setup ci workflows
- [ ] secure tensorboard instances ?
- [ ] test connection w/ frontend
- [x] setup ci workflows

0 comments on commit e0d0033

Please sign in to comment.