Skip to content

Commit

Permalink
feat(ci): Create Github Actions for Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Nov 17, 2023
1 parent 7a5e87c commit ecf6a48
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Build and Push

on:
push:
branches:
- master

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Check Out Repo
uses: actions/checkout@v2

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

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

- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/sikalabs/status.sikalabs.com:latest

0 comments on commit ecf6a48

Please sign in to comment.