From f21819d7e902b534d584228c902736e61246d768 Mon Sep 17 00:00:00 2001 From: Jun Sakata Date: Thu, 25 Apr 2024 17:06:05 +0900 Subject: [PATCH] add ci to publish images --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ .github/workflows/release_nightly.yml | 20 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/release_nightly.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a5a0760 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml new file mode 100644 index 0000000..4dabcc7 --- /dev/null +++ b/.github/workflows/release_nightly.yml @@ -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