Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra: Replace docker hub with GitHub packages #74

Merged
merged 11 commits into from
Feb 12, 2024
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
Haarolean marked this conversation as resolved.
Show resolved Hide resolved
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
Haarolean marked this conversation as resolved.
Show resolved Hide resolved
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
Loading