Skip to content

Commit

Permalink
Merge pull request #6 from Slickdeals/OPS-10298-update-jira
Browse files Browse the repository at this point in the history
adds tags from meta step
  • Loading branch information
Wicaeed authored Mar 19, 2024
2 parents 924b4d1 + efe30be commit 2372f24
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build-dev-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build & Push Jira Development Docker Image to GHCR

on:
workflow_dispatch:
pull_request:
branches:
- develop
Expand All @@ -10,7 +11,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: slickdeals/jira-software
IMAGE_NAME: slickdeals/jira-software-dev
COMMIT_SHA: ${{ github.sha }}

jobs:
Expand All @@ -28,24 +29,20 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ env.GITHUB_TOKEN }}
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for the Docker image
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ env.COMMIT_SHA }}
${{ vars.DEVELOP_TAG}}
- name: Build, Tag, and push Docker image
uses: docker/build-push-action@v5
with:
context: ./app
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.COMMIT_SHA }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.COMMIT_SHA}}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILD_TAG=${{ vars.DEVELOP_TAG }}
BUILD_TAG=${{ vars.DEVELOP_TAG }}

0 comments on commit 2372f24

Please sign in to comment.