Skip to content

DS-566: mention github publish action in README #16

DS-566: mention github publish action in README

DS-566: mention github publish action in README #16

---
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@v4
with:
path: "${{ github.repository }}"
- name: build base image
run: "${{ github.repository }}/build"
- name: test base image
run: "${{ github.repository }}/test"
- name: log into Docker Hub
if: ${{ github.ref_name == 'main' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: publish base image
if: ${{ github.ref_name == 'main' }}
run: "${{ github.repository }}/publish"