diff --git a/actions/base-docker/action.yml b/actions/base-docker/action.yml new file mode 100644 index 0000000..22aa9c8 --- /dev/null +++ b/actions/base-docker/action.yml @@ -0,0 +1,25 @@ +name: Base Docker CI +description: Checkout repo, build docker container, and publish for main branch +runs: + using: composite + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + submodules: recursive + - name: Login to GitHub Container Registry + uses: docker/login-action@v4 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + - name: Build container + shell: bash + run: docker build -t new . + - name: Test container + shell: bash + run: ./scripts/test.sh + - name: Publish images + shell: bash + run: ./meta/publish.sh + if: github.event_name == 'push' && github.ref == 'refs/heads/main'