Skip to content

Commit

Permalink
fix deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Nov 21, 2023
1 parent 99f0bd1 commit 4f6b9f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- name: Run pre-commit
uses: pre-commit/action@v3.0.0

- uses: actions/checkout@v4
- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
version: ${{ steps.get_version.outputs.STRIMZI_CLI_VERSION }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

Expand All @@ -35,6 +35,13 @@ jobs:
- name: Install dependencies
run: make install-dependencies

- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: |
mkdir ~/.kube
echo "$KUBECONFIG" > ~/.kube/config
- name: Build
run: make build

Expand All @@ -52,21 +59,13 @@ jobs:
- name: Bake and push image
uses: docker/build-push-action@v1.1.0
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: ${{ secrets.QUAY_USERNAME }}
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.QUAY_PASSWORD }}
# Server address of Docker registry. If not set then will default to Docker Hub
registry: quay.io
# Docker repository to tag the image with
repository: systemcraftsman/strimzi-kafka-cli
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: latest,${{ env.STRIMZI_CLI_VERSION }}
# Path to the build context
path: .
# Path to the Dockerfile (Default is '{path}/Dockerfile')
dockerfile: ./Dockerfile
# Whether to push the image
push: true

upload_build_data_artifact:
Expand Down

0 comments on commit 4f6b9f9

Please sign in to comment.