Skip to content

Commit

Permalink
Merge pull request #4 from Slickdeals/OPS-10298-update-jira
Browse files Browse the repository at this point in the history
gh actions doesnt like to push images
  • Loading branch information
Wicaeed authored Mar 19, 2024
2 parents 5f14733 + 3a3e87b commit ad0fff5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build & Push Jira Development Docker Image to GHCR

on:
pull_request:
branches:
- develop
push:
branches:
- develop
Expand All @@ -22,12 +24,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ env.GITHUB_TOKEN }}
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for the Docker image
id: meta
uses: docker/metadata-action@v5
Expand All @@ -36,7 +40,7 @@ jobs:
tags: |
${{ env.COMMIT_SHA }}
${{ vars.DEVELOP_TAG}}
- name: Build and push Docker image
- name: Build, Tag, and push Docker image
uses: docker/build-push-action@v5
with:
context: ./app
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-release-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build & Push Jira Release Docker Image to GHCR

on:
pull_request:
branches:
- main
push:
branches:
- main
Expand All @@ -21,12 +24,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ env.GITHUB_TOKEN }}
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for the Docker image
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit ad0fff5

Please sign in to comment.