Skip to content

Commit

Permalink
Create build-and-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-sumit authored Jan 28, 2025
1 parent dfe3f25 commit 1f3edc3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}/privasea-acceleration-node-beta:latest
ghcr.io/${{ github.repository }}/privasea-acceleration-node-beta:${{ github.sha }}

0 comments on commit 1f3edc3

Please sign in to comment.