Skip to content

Upgrade gopkg.in/yaml.v3 for security patches #25

Upgrade gopkg.in/yaml.v3 for security patches

Upgrade gopkg.in/yaml.v3 for security patches #25

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
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