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 d9ca014
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/on_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Deploying Light Client"

on:
push:
# branches:
# - main

jobs:
git-submodules-update:
name: "Build and deploy Light Client"
permissions:
contents: read
packages: write
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 d9ca014

Please sign in to comment.