Skip to content

Commit

Permalink
Updated deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-summermatter committed May 14, 2024
1 parent 30651f4 commit 9d12af1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/on-main-publish-main-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish main docker image

on:
create:
tags:
- '*'
push:
branches:
- main

jobs:
date_sha_tag:
Expand All @@ -14,11 +14,11 @@ jobs:
- id: image_tag
run: echo "::set-output name=tag::$(date +%s)-${{ github.sha }}"

publish_master_docker:
publish_main_docker:
needs: date_sha_tag
uses: ./.github/workflows/on-demand-publish-docker-image.yml
with:
tags: |
ghcr.io/wepublish/hauptstadt:production-${{ needs.date_sha_tag.outputs.tag }}
ghcr.io/wepublish/hauptstadt:production
ghcr.io/wepublish/hauptstadt:main-${{ needs.date_sha_tag.outputs.tag }}
ghcr.io/wepublish/hauptstadt:main
secrets: inherit
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ $ npm run generate

For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).

## Deployment
- Push to main to deploy staging
- Create a tag to deploy production

## Special Directories

You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality.
Expand Down

0 comments on commit 9d12af1

Please sign in to comment.