Created
March 16, 2020 19:20
-
-
Save jdkanani/e55dd02bc1d5d191de2364a6c13d2490 to your computer and use it in GitHub Desktop.
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: Docker Image CI | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${GITHUB_REF:10} | |
- name: Set output | |
id: vars | |
run: echo ::set-output name=tag::${GITHUB_REF:10} | |
- name: Build the Docker image | |
run: | | |
echo "Building ${{ steps.vars.outputs.tag }}" | |
docker build . --file docker/Dockerfile --tag heimdall:${{ steps.vars.outputs.tag }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment