Create docker-image.yml

**added** gh action to build and publish container image
This commit is contained in:
Aytac Kirmizi 2023-07-12 16:28:08 +02:00 committed by GitHub
parent 79e2fc88d2
commit 9e4cbff979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
push-store-image:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build Orbiter Image'
run: |
docker build -f ./Dockerfile --tag ghcr.io/spaytac/orbiter:latest .
docker push ghcr.io/spaytac/orbiter:latest