Merge pull request #7 from ItzDerock/gh-workflow

ci: add github workflow
This commit is contained in:
Andrei Canta 2023-03-18 23:33:13 +02:00 committed by GitHub
commit 6d9a3895f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

37
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: ci-docker
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Github Container Registry
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
registry: ghcr.io
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}, ghcr.io/${{ github.repository }}:latest