Skip to content

Commit e28520a

Browse files
authored
fix: gh action update (#5)
* fix: use default template on container building Signed-off-by: Martin Buchleitner <mbuchleitner@infralovers.com>
1 parent de0050a commit e28520a

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ jobs:
5353
if [[ -n "${{ secrets.IMAGE_REPO }}" ]]; then
5454
IMAGE_REPO="${{ secrets.IMAGE_REPO }}"
5555
fi
56-
HUB_IMAGE="docker.io/$IMAGE_REPO/$IMAGE_NAME"
5756
QUAY_IMAGE="quay.io/$IMAGE_REPO/$IMAGE_NAME"
5857
GHCR_IMAGE="ghcr.io/${{ github.repository }}"
5958
VERSION="dev"
@@ -63,9 +62,9 @@ jobs:
6362
if [ "${{ github.event_name }}" = "schedule" ]; then
6463
VERSION="nightly"
6564
fi
66-
TAGS="${QUAY_IMAGE}:${VERSION},${HUB_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
65+
TAGS="${QUAY_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
6766
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
68-
TAGS="$TAGS,${QUAY_IMAGE}:latest,${HUB_IMAGE}:latest,${GHCR_IMAGE}:latest"
67+
TAGS="$TAGS,${QUAY_IMAGE}:latest,${GHCR_IMAGE}:latest"
6968
fi
7069
echo "settings tag ${TAGS}"
7170
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
@@ -87,13 +86,6 @@ jobs:
8786
restore-keys: |
8887
${{ runner.os }}-buildx-
8988
90-
- name: Login to DockerHub
91-
if: needs.prebuild.outputs.version != ''
92-
uses: docker/login-action@v1
93-
with:
94-
username: ${{ secrets.DOCKERHUB_USER }}
95-
password: ${{ secrets.DOCKERHUB_TOKEN }}
96-
9789
- name: Login to Quay
9890
if: needs.prebuild.outputs.version != ''
9991
uses: docker/login-action@v1

0 commit comments

Comments
 (0)