coder-enterprise-images/.github/workflows/ci.yaml

28 lines
628 B
YAML
Raw Normal View History

# File generated by bin/generate-actions-yaml.sh
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-images:
runs-on: ubuntu-20.04
steps:
2021-02-17 19:08:48 +00:00
- name: Checkout
uses: actions/checkout@v2
2021-02-17 19:08:48 +00:00
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2021-02-17 19:08:48 +00:00
- name: Build images
run: ./bin/build-images.sh
2021-02-17 19:08:48 +00:00
- name: Push images
if: ${{ github.event_name != 'pull_request' }}
run: ./bin/push-images.sh