Skip to content

Commit

Permalink
Update publish-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
beliaev-maksim authored Jul 29, 2024
1 parent 122c7e6 commit 1f019da
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
tags:
- '*.*.*'

permissions:
packages: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write

steps:
- name: Check out the repository
Expand Down Expand Up @@ -39,12 +41,12 @@ jobs:
- name: Build Docker image
run: |
sudo docker buildx build -t github_jira_sync_app --output type=docker .
docker buildx build -t github_jira_sync_app --output type=docker .
- name: Tag Docker image
run: |
sudo docker tag github_jira_sync_app ghcr.io/canonical/gh-jira-sync-bot:${TAG}
docker tag github_jira_sync_app ghcr.io/canonical/gh-jira-sync-bot:${TAG}
- name: Push Docker image
run: |
sudo docker push ghcr.io/canonical/gh-jira-sync-bot:${TAG}
docker push ghcr.io/canonical/gh-jira-sync-bot:${TAG}

0 comments on commit 1f019da

Please sign in to comment.