From e0cc984574b2224c96a26a3c7db9f886093fd929 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Thu, 26 Sep 2024 09:15:57 -0700 Subject: [PATCH] ci: only push to ghcr and use owner variable --- .github/workflows/docker-master.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-master.yaml b/.github/workflows/docker-master.yaml index f154f24..db532d9 100644 --- a/.github/workflows/docker-master.yaml +++ b/.github/workflows/docker-master.yaml @@ -3,6 +3,7 @@ name: Build and Publish Docker Images after push to master branch on: push: branches: [master] + workflow_dispatch: jobs: build-and-push-docker-image: @@ -24,17 +25,10 @@ jobs: uses: docker/metadata-action@v3 with: images: | - lablabs/cloudflare_exporter - ghcr.io/lablabs/cloudflare_exporter + ghcr.io/${{ github.repository_owner }}/cloudflare_exporter # generate Docker tags based on the following events/attributes tags: type=raw,value=latest - - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - + - name: Login to Github Packages uses: docker/login-action@v3 with: