Skip to content

Instantly share code, notes, and snippets.

@jdkanani
Created March 16, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdkanani/e55dd02bc1d5d191de2364a6c13d2490 to your computer and use it in GitHub Desktop.
Save jdkanani/e55dd02bc1d5d191de2364a6c13d2490 to your computer and use it in GitHub Desktop.
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