Skip to content

Add rate limiting to the baker #24

Add rate limiting to the baker

Add rate limiting to the baker #24

Workflow file for this run

name: Baker.go
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: extract version from tag
id: tag_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v2
- name: build
env:
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
DOCKER_SECRET: ${{ secrets.DOCKER_SECRET }}
run: |
GIT_COMMIT=$(git rev-list -1 HEAD)
VERSION=${{ steps.tag_version.outputs.VERSION }}
docker build --build-arg GIT_COMMIT=$GIT_COMMIT --build-arg VERSION=$VERSION -t alinz/baker.go:$VERSION .
docker build --build-arg GIT_COMMIT=$GIT_COMMIT --build-arg VERSION=$VERSION -t alinz/baker.go:latest .
echo ${{ secrets.DOCKER_SECRET }} | docker login -u ${{ secrets.DOCKER_LOGIN }} --password-stdin
docker push alinz/baker.go:$VERSION
docker push alinz/baker.go:latest