Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from CareerJSM/feature/architecture-specific-tags
Browse files Browse the repository at this point in the history
architecture-specific-tags
  • Loading branch information
harry-careerjsm authored May 27, 2021
2 parents b637532 + 9ffa894 commit f78f809
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f78f809

Please sign in to comment.