DS-566: upgrade checkout action to v4 #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: build test image | |
run: docker buildx build "${{ 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_TOKEN }} | |
- name: publish base image | |
if: ${{ github.ref_name == 'main' }} | |
run: "${{ github.repository }}/publish" |