Skip to content

Commit

Permalink
feat(CI/CD): add push to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
rupansh committed Jul 23, 2024
1 parent d9b320f commit e36e190
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Rust Setup
uses: dtolnay/rust-toolchain@stable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-musl
- run: chmod +x target/x86_64-unknown-linux-musl/release/yral-metadata-server
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy to ghcr.io

on:
workflow_dispatch:
push:
branches:
- rupansh/grpc

jobs:
docker_publish:
runs-on: "ubuntu-20.04"
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4

- name: Build and publish docker image
uses: macbre/push-to-ghcr@master
with:
image_name: go-bazzinga/yral-metadata
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: ./Dockerfile.local
image_tag: ${{ github.sha }}

0 comments on commit e36e190

Please sign in to comment.