From 57fafd2145da1fb9f75d68794860119ece228b5b Mon Sep 17 00:00:00 2001 From: neverbot Date: Fri, 17 Jan 2025 20:27:32 +0100 Subject: [PATCH] chore: execute pipeline only when pushing to this branch --- .github/workflows/publish-ghcr.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish-ghcr.yaml diff --git a/.github/workflows/publish-ghcr.yaml b/.github/workflows/publish-ghcr.yaml new file mode 100644 index 0000000..d876880 --- /dev/null +++ b/.github/workflows/publish-ghcr.yaml @@ -0,0 +1,20 @@ +name: Build and Publish to Github Container Registry + +on: + push: + branches: [ v22.2b14 ] + +jobs: + build_and_publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Login onto ghcr + run: | + docker login --username maldorne-bot --password ${{ secrets.MALDORNE_BOT_GHCR_TOKEN }} ghcr.io + - name: Build image + run: | + docker build --no-cache . -t ghcr.io/maldorne/mudos:v22.2b14 + - name: Publish image + run: | + docker push ghcr.io/maldorne/mudos:v22.2b14