Skip to content

Commit

Permalink
Infra: Replace docker hub with GitHub packages (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmoonl1ght94 authored Feb 12, 2024
1 parent 11a57d1 commit 0ad65de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
permissions: # TODO remove when public
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -48,8 +48,14 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
if: false # TODO fix for github images
id: docker_build_and_push
uses: docker/build-push-action@v5
with:
Expand All @@ -71,7 +77,6 @@ jobs:
# #
#################################
- name: update-master-deployment
if: false # TODO remove after infra fix
run: |
git clone https://infra-tech:${{ secrets.INFRA_USER_ACCESS_TOKEN }}@github.com/kafbat/ui-infra.git --branch main
cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
release:
runs-on: ubuntu-latest
permissions: # TODO remove when public
contents: read
contents: write
packages: write
outputs:
version: ${{steps.build.outputs.version}}
steps:
Expand Down Expand Up @@ -67,8 +68,13 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
if: false # TODO fix for github images
id: docker_build_and_push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 0ad65de

Please sign in to comment.