Skip to content

Bump github.com/go-chi/chi from 1.5.5 to 4.1.2+incompatible (#129) #127

Bump github.com/go-chi/chi from 1.5.5 to 4.1.2+incompatible (#129)

Bump github.com/go-chi/chi from 1.5.5 to 4.1.2+incompatible (#129) #127

Workflow file for this run

name: Release
on:
push:
branches:
- 'master'
tags:
- 'v*'
permissions:
contents: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '^1.20'
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v2
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step to build and push Docker image
- name: Build and Push Docker Image
if: startsWith(github.ref, 'refs/tags/')
run: |
TAG="${GITHUB_REF#refs/tags/v}"
IMAGE_NAME="ghcr.io/shaharia-lab/teredix:frontend-$TAG"
docker build -f frontend.dockerfile -t "$IMAGE_NAME" .
docker push "$IMAGE_NAME"