Skip to content

Commit

Permalink
ci: Update image repositories and workflow permissions
Browse files Browse the repository at this point in the history
- Update docker image repository URLs in Makefile
- Modify permissions for packages in publish pipeline GitHub workflow
  • Loading branch information
johnnyhuy committed May 26, 2024
1 parent 059ec79 commit 26835bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-pipeline-toolkit-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
schedule:
- cron: "0 8 * * *" # Every day at 7:00 PM AEDT

permissions:
packages: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -20,9 +22,6 @@ jobs:
name: ${{ matrix.platform }}
runs-on: ubuntu-latest

permissions:
packages: write

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLATFORM: ${{ matrix.platform }}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ifndef NAME
$(error NAME is not set)
endif
docker build \
-t ghcr.io/johnnyhuy/pipeline-toolkits/$(NAME):latest \
-t ghcr.io/johnnyhuy/pipeline-toolkits/$(NAME):$(VERSION) \
-t ghcr.io/echohello-dev/pipeline-toolkits/$(NAME):latest \
-t ghcr.io/echohello-dev/pipeline-toolkits/$(NAME):$(VERSION) \
containers/$(NAME)

publish: login-github
Expand All @@ -22,7 +22,7 @@ ifndef NAME
endif
docker build \
--platform $(PLATFORM) \
-t ghcr.io/johnnyhuy/pipeline-toolkits/$(NAME):latest \
-t ghcr.io/johnnyhuy/pipeline-toolkits/$(NAME):$(VERSION) \
-t ghcr.io/echohello-dev/pipeline-toolkits/$(NAME):latest \
-t ghcr.io/echohello-dev/pipeline-toolkits/$(NAME):$(VERSION) \
--push \
containers/$(NAME)

0 comments on commit 26835bb

Please sign in to comment.