Skip to content

Commit

Permalink
feat: auto build and publish image on push
Browse files Browse the repository at this point in the history
  • Loading branch information
neverbot committed Feb 7, 2024
1 parent 8ce047a commit aa21fa3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and Publish to Github Container Registry

on:
push

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login onto ghcr
run: |
docker login --user maldorne-bot --password ${{ secrets.MALDORNE_BOT_GHCR_TOKEN }} ghcr.io
- name: Build image
run: |
docker build --no-cache . -t ghcr.io/maldorne/mudos:v21.7
- name: Publish image
run: |
docker push ghcr.io/maldorne/mudos:v21.7

0 comments on commit aa21fa3

Please sign in to comment.