You've already forked AstralRinth
forked from didirus/AstralRinth
Dockerize knossos (#5)
* Dockerize knossos * Docker actions * Remove useless thing
This commit is contained in:
21
.github/workflows/docker-compile-master.yml
vendored
Normal file
21
.github/workflows/docker-compile-master.yml
vendored
Normal 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
|
||||
22
.github/workflows/docker-compile-tag.yml
vendored
Normal file
22
.github/workflows/docker-compile-tag.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user