Skip to content

Commit

Permalink
Merge pull request #83 from ubie-oss/add-ci-to-publish-images
Browse files Browse the repository at this point in the history
add ci to publish images
  • Loading branch information
sakajunquality authored Apr 25, 2024
2 parents 9afd90b + f21819d commit 68832ee
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Docker Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: docker.pkg.github.com/ubie-oss/flow/flow
- uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
20 changes: 20 additions & 0 deletions .github/workflows/release_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish nightly Docker image
on:
push:
branches:
- main
jobs:
push:
name: Push Docker image to GitHub Docker Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: true
tags: docker.pkg.github.com/ubie-oss/flow/flow:latest

0 comments on commit 68832ee

Please sign in to comment.