From ca20eaf45c92ff7d875e2b80c1144e131f182f32 Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 3 Jun 2024 15:34:01 +0100 Subject: [PATCH] Push to GHCR too --- .gitea/workflows/docker-publish.yaml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/docker-publish.yaml b/.gitea/workflows/docker-publish.yaml index ed926e4..16fcbb8 100644 --- a/.gitea/workflows/docker-publish.yaml +++ b/.gitea/workflows/docker-publish.yaml @@ -1,19 +1,29 @@ -name: Build and Publish Jimmy.2 -run-name: Build and Publish Jimmy.2 +name: Build and Publish college-bot-v2 +run-name: Build and Publish college-bot-v2 on: [push] jobs: build_and_publish: - runs-on: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04] + runs-on: [ubuntu-latest] steps: - name: Check out repository code uses: actions/checkout@v4 - name: Build Docker image run: | - docker build -t git.i-am.nexus/nex/college-bot:latest . - - name: Log into container registry - run: | - docker login -u ${{ secrets.CR_USERNAME }} -p ${{ secrets.CR_PASSWORD }} git.i-am.nexus + docker build -t git.i-am.nexus/nex/college-bot:latest -t ghcr.io/nexy7574/college-bot:latest . + - name: Log into GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: nexy7574 + password: ${{ secrets.GHCR_PASSWORD }} + - name: Log into forgejo CR + uses: docker/login-action@v3 + with: + registry: git.i-am.nexus + username: nex + password: ${{ secrets.CR_PASSWORD }} - name: Push to container registry run: | - docker push git.i-am.nexus/nex/college-bot:latest \ No newline at end of file + docker push git.i-am.nexus/nex/college-bot:latest + docker push ghcr.io/nexy7574/college-bot:latest \ No newline at end of file