From 25be625b261b7aaabb08d1e1031b559d9e2a2fb1 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 30 Oct 2024 11:37:55 -0500 Subject: ci: only run on vX.Y.Z tags Signed-off-by: Matt Strapp --- .github/workflows/docker.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to '.github/workflows/docker.yml') diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0b10a77..74072c7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,7 +13,6 @@ on: - ".github/workflows/docker.yml" env: - REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: @@ -34,11 +33,18 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Login to GitHub Registry + images: | + ghcr.io/${{ env.IMAGE_NAME }} + rosstheross/${{ env.IMAGE_NAME }} + - name: Login to DockerHub uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} + username: rosstheross + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and Push -- cgit v1.2.3