Skip to content

Commit

Permalink
Update delivery pipeline to use latest tag when run from master
Browse files Browse the repository at this point in the history
Update the `delivery.yml` pipeline to use different tags based on the branch it is run from.

* **README.md**
  - Add a note about the new behavior of the `delivery.yml` pipeline.
  - Mention that the pipeline now uses the latest tag when run from master.
  - Mention that the pipeline uses the staging tag when not run from master.

* **.github/workflows/delivery.yml**
  - Add a condition to check if the pipeline is run from the master branch.
  - Modify the `tags` value to use the latest tag when run from master.
  - Modify the `tags` value to use the staging tag when not run from master.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/privacybydesign/irma-documentation?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
DibranMulder committed Jan 2, 2025
1 parent a9d6bd4 commit c4f8665
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=staging
type=raw,value=${{ github.ref == 'refs/heads/master' && 'latest' || 'staging' }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ docker compose up

## Release
To release a new version run the Github action located [here](https://github.com/privacybydesign/irma-documentation/actions/workflows/delivery.yml). This will push a new Docker build to Github packages:
https://github.com/privacybydesign/irma-documentation/pkgs/container/irma-documentation
https://github.com/privacybydesign/irma-documentation/pkgs/container/irma-documentation

### Note on delivery.yml pipeline behavior
When the `delivery.yml` pipeline is run from the master branch, it will use the latest tag. If the pipeline is not run from the master branch, it will use the staging tag.

0 comments on commit c4f8665

Please sign in to comment.