Skip to content

Commit

Permalink
ci: automation build image
Browse files Browse the repository at this point in the history
  • Loading branch information
supanadit committed Oct 31, 2024
1 parent 58b9f5d commit c966407
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 39 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Push Docker Image
on:
release:
types: [published]

jobs:
build-and-push:
name: Build Docker and Push to Registry
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to GitHub Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
39 changes: 0 additions & 39 deletions .github/workflows/lighthouse.yml

This file was deleted.

0 comments on commit c966407

Please sign in to comment.