SYS-1738: Fix form years (#28) #21
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: Build for Docker Hub Cataloging Statistics | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build_for_docker_hub: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Read chart yaml to get version for docker tag | |
id: yaml-data | |
uses: KJ002/[email protected] | |
with: | |
file: 'charts/prod-catalogingstatistics-values.yaml' | |
key-path: '["image", "tag"]' | |
- name: Display yaml info | |
run: echo "${{ steps.yaml-data.outputs.data }}" | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: | | |
uclalibrary/cataloging-statistics:${{ steps.yaml-data.outputs.data }} | |
uclalibrary/cataloging-statistics:scan |