Merge pull request #317 from shiftstack/fix-generated-docs #191
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: container image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| env: | |
| image_tag_branch: quay.io/orc/openstack-resource-controller:branch-${GITHUB_REF_NAME} | |
| image_tag_commit: quay.io/orc/openstack-resource-controller:commit-${GITHUB_SHA::7} | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: | | |
| docker login -u="${{ secrets.QUAY_USERNAME }}" -p="${{ secrets.QUAY_TOKEN }}" quay.io | |
| docker build -t ${{ env.image_tag_branch }} . | |
| docker push ${{ env.image_tag_branch }} | |
| docker build -t ${{ env.image_tag_commit }} --label quay.expires-after=4w . | |
| docker push ${{ env.image_tag_commit }} |