Skip to content

Commit

Permalink
ci: publish image to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dndll committed Nov 15, 2023
1 parent 24d1ff1 commit f52d260
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/on_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Deploying Light Client"

on:
push:
# branches:
# - main

jobs:
git-submodules-update:
name: "Build and deploy Light Client"
permissions: write-all
runs-on:
group: ubuntu-22.04-8core
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build "light-client" Docker image and push
uses: docker/build-push-action@v5
with:
context: .
push: true
file: Dockerfile
tags: |
ghcr.io/near/near-light-client/light-client:${{ github.sha }}
ghcr.io/near/near-light-client/light-client:latest

0 comments on commit f52d260

Please sign in to comment.