ci: create Github Action to push image to ghcr
This commit is contained in:
parent
7c75758d65
commit
413a1fb0f8
18
.github/workflows/image.yml
vendored
Normal file
18
.github/workflows/image.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user