Upgrade gopkg.in/yaml.v3 for security patches #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |