Merge pull request #2201 from vimalk78/fix-metrics-pkg #146
This file contains hidden or 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: Push | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [reboot] | |
jobs: | |
test-and-codecov: | |
uses: ./.github/workflows/test-and-codecov.yaml | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Additional tags | |
id: additional_tags | |
shell: bash | |
run: | | |
echo "result=$(git rev-parse --short HEAD)-$(date +%Y%m%d%H%M%S),latest" >> $GITHUB_OUTPUT | |
- name: Build and publish image to external registry | |
uses: ./.github/publish-image | |
with: | |
registry: quay.io/sustainable_computing_io | |
username: ${{ secrets.BOT_NAME }} | |
password: ${{ secrets.BOT_TOKEN }} | |
additional_tags: ${{ steps.additional_tags.outputs.result }} |