Merge pull request #2222 from sustainable-computing-io/dependabot/git… #166
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: [main] | |
jobs: | |
test-and-codecov: | |
uses: ./.github/workflows/test-and-codecov.yaml | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# for each PR merge, openSSF scan | |
scorecard: | |
uses: ./.github/workflows/scorecard.yml | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5.5.0 | |
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 }} |