Skip to content

Instantly share code, notes, and snippets.

@busser
Created April 20, 2020 08:18
Show Gist options
  • Save busser/69e94566b7b32ec4dcf2c5e0c90d3c19 to your computer and use it in GitHub Desktop.
Save busser/69e94566b7b32ec4dcf2c5e0c90d3c19 to your computer and use it in GitHub Desktop.
Sample GitHub Actions workflow
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment