Skip to content

Seperated publish and build scripts #11

Seperated publish and build scripts

Seperated publish and build scripts #11

---
name: test and publish
on: [ push, pull_request, workflow_dispatch ]
jobs:
build_test_publish:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: build base image
run: ${{ github.repository }}/build
- name: build test image
run: docker buildx build "${{ github.repository }}"/test
- name: publish base image
if: ${{ github.ref_name == 'main' }}
run: ${{ github.repository }}/publish