mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-17 02:38:29 +00:00
Add docker-image.yml
This commit is contained in:
parent
8f93232e81
commit
b541c40f56
20
.github/workflows/docker-image.yml
vendored
Normal file
20
.github/workflows/docker-image.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Docker Image CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: 'Login to GitHub Container Registry'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{github.actor}}
|
||||||
|
password: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: "docker build . --file Dockerfile --tag ghcr.io/${{ github.actor }}/cobalt:${{ github.ref_name }}"
|
||||||
|
- name: Push docker image
|
||||||
|
run: "docker push ghcr.io/${{ github.actor }}/cobalt:${{ github.ref_name }}"
|
Loading…
Reference in New Issue
Block a user