Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystianKempski committed Oct 31, 2024
2 parents 48ea088 + cc11af6 commit 01dad42
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docker-image-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish dev Docker image

on:
push:
branches: [ "master" ]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV

- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: drikqlis/dagonite-empire
flavor: |
latest=false
prefix=dev.${{ env.NOW }}-
suffix=
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./DagoniteEmpire/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ A comprehensive tool for starting an online, text-based RPG campaign, enabling m
Application database is made on PostGreSQL.

## 🎲 Try it yourself
You can access development version of deployed application here:
[dagonite-empire.drik.it](https://dagonite-empire.drik.it)
You can access release and development version of the application here:
- Release: [dagonite-empire.drik.it](https://dagonite-empire.drik.it)
- Dev: [dagonite-empire-dev.drik.it](https://dagonite-empire-dev.drik.it)

You can use default test users or create your own account.

Expand Down

0 comments on commit 01dad42

Please sign in to comment.