Dockerize knossos (#5)

* Dockerize knossos

* Docker actions

* Remove useless thing
This commit is contained in:
Geometrically
2020-09-01 09:08:35 -07:00
committed by GitHub
parent 2d7760e67c
commit 749ae3deb3
6 changed files with 160 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
name: Docker image build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: modrinth/knossos
tag_with_ref: false
tags: master
tag_with_sha: true

View File

@@ -0,0 +1,22 @@
name: Docker image build
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: modrinth/knossos
tag_with_ref: true
tags: latest
tag_with_sha: true