Skip to content

Bump github.com/Masterminds/sprig/v3 from 3.2.3 to 3.3.0 (#303) #49

Bump github.com/Masterminds/sprig/v3 from 3.2.3 to 3.3.0 (#303)

Bump github.com/Masterminds/sprig/v3 from 3.2.3 to 3.3.0 (#303) #49

Workflow file for this run

# Build and push Docker image to docker hub
name: Build
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- main
tags:
- "*"
jobs:
build-and-push:
name: BuildAndPush
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Login to docker hub
if: success()
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Deduce image tag
run: |
if [[ -z "${IMAGE_TAG}" ]]; then \
IMAGE_TAG=${GITHUB_REF#*/}; \
IMAGE_TAG=${IMAGE_TAG#*/}; \
IMAGE_TAG=$(echo $IMAGE_TAG | sed -e "s#^v##"); \
if [[ "$IMAGE_TAG" == "master" || "$IMAGE_TAG" == "main" ]]; then \
IMAGE_TAG=latest; \
fi \
fi && \
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
- name: Build and push docker image
if: success()
shell: bash
env:
IMG: quortexio/kubestitute:${IMAGE_TAG}
run: |
make docker-build docker-push