Skip to content

Build

Build #13

Workflow file for this run

name: Build
on:
workflow_run:
workflows: ["Test"]
types:
- completed
push:
branches:
- main
tags:
- 'v*'
jobs:
docker-build-and-push:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Task
uses: arduino/setup-task@v1.0.3
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push App using Buildpacks
run: task build_tasks:build:pack:gh