Replace deprecated command with environment file #132
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
# This workflow will build the container image for amd64 arch. (as a basic build test) | |
name: Build amd64 container image | |
on: | |
# On pull-request event with detailed condition below. | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '.all-contributorsrc' | |
- '.gitignore' | |
- 'LICENSE' | |
- 'CODEOWNERS' | |
- 'docs/**' | |
jobs: | |
# The job key is "building" | |
building: | |
# Job name is "Building" | |
name: Building | |
# This job runs on Ubuntu-latest | |
runs-on: ubuntu-18.04 | |
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Build image | |
env: | |
# TODO: Change variable to your repository name and image name. | |
IMAGE_NAME: cb-ladybug | |
run: docker build . --file Dockerfile --tag $IMAGE_NAME |