Skip to content

chore: touchup toml and script #2

chore: touchup toml and script

chore: touchup toml and script #2

Workflow file for this run

name: Build and Test
on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
name: Test packages
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run tests
run: |
docker build -f aica-package.toml --target test .
build-push:
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
name: Build and push
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/template-component-package:latest
context: .
file: aica-package.toml