Skip to content

Commit

Permalink
fix: use default template on container building (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda authored Mar 16, 2023
1 parent 254371b commit 858f7e3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
if [[ -n "${{ secrets.IMAGE_REPO }}" ]]; then
IMAGE_REPO="${{ secrets.IMAGE_REPO }}"
fi
HUB_IMAGE="docker.io/$IMAGE_REPO/$IMAGE_NAME"
QUAY_IMAGE="quay.io/$IMAGE_REPO/$IMAGE_NAME"
GHCR_IMAGE="ghcr.io/${{ github.repository }}"
VERSION="dev"
Expand All @@ -63,9 +62,9 @@ jobs:
if [ "${{ github.event_name }}" = "schedule" ]; then
VERSION="nightly"
fi
TAGS="${QUAY_IMAGE}:${VERSION},${HUB_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
TAGS="${QUAY_IMAGE}:${VERSION},${GHCR_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${QUAY_IMAGE}:latest,${HUB_IMAGE}:latest,${GHCR_IMAGE}:latest"
TAGS="$TAGS,${QUAY_IMAGE}:latest,${GHCR_IMAGE}:latest"
fi
echo "settings tag ${TAGS}"
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
Expand All @@ -87,13 +86,6 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
if: needs.prebuild.outputs.version != ''
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Quay
if: needs.prebuild.outputs.version != ''
uses: docker/login-action@v1
Expand Down

0 comments on commit 858f7e3

Please sign in to comment.