Skip to content

Commit

Permalink
add gha build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Oct 23, 2024
1 parent b22a486 commit b3eff20
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Docker

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Run
env:
REGISTRY: ghcr.io
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest

0 comments on commit b3eff20

Please sign in to comment.