This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from CareerJSM/feature/architecture-specific-tags
architecture-specific-tags
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,13 +67,19 @@ jobs: | |
exit-code: 1 | ||
severity: CRITICAL | ||
format: table | ||
- name: Define IMAGE_TAG (master) | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: echo "IMAGE_TAG=latest-${{ matrix.architecture }}" >> $GITHUB_ENV | ||
- name: Define IMAGE_TAG (tags) | ||
if: ${{ contains(github.ref, 'tags') && contains(github.ref, matrix.architecture) }} | ||
run: echo "IMAGE_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | ||
- name: Build and publish Docker Image to GitHub Packages Registry | ||
uses: VaultVulp/[email protected] | ||
if: ${{ env.IS_DEPLOYMENT == 'true' }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
image-name: rails | ||
image-tag: latest-${{ matrix.architecture }} | ||
image-tag: ${{ env.IMAGE_TAG }} | ||
dockerfile: Dockerfile.${{ matrix.architecture }} | ||
custom-args: --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from=${{ steps.build-docker-image-using-cache.outputs.FULL_IMAGE_NAME }}:${{ github.sha }} | ||
- name: Update Deployment Status (Success) | ||
|