Merge pull request #101 from pierreprinetti/update_website #44
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: container image | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
env: | |
image_tag_latest: quay.io/orc/openstack-resource-controller:latest | |
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 }} -t ${{ env.image_tag_latest }} . | |
docker push ${{ env.image_tag_branch }} | |
docker push ${{ env.image_tag_latest }} | |
docker build -t ${{ env.image_tag_commit }} --label quay.expires-after=4w . | |
docker push ${{ env.image_tag_commit }} |