ci: create Github Action to push image to ghcr

This commit is contained in:
Achraf RRAMI 2024-03-13 23:30:56 +00:00 committed by GitHub
parent 7c75758d65
commit 413a1fb0f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

18
.github/workflows/image.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Build container image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker buildx build . -t ghcr.io/rramiachraf/dumb:latest
- run: docker push ghcr.io/rramiachraf/dumb:latest