Skip to content

Commit

Permalink
Create buildx context on github flow (#2699)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
Jorge Turrado Ferrero authored Mar 1, 2022
1 parent 3bd427a commit c81cb88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ RUN apt-get update \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
&& apt-get update \
&& apt-get install -y docker-ce-cli \
&& docker buildx create --use \
#
# Install pip & pre-commit
&& apt-get -y install python3-pip \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
# Server address of Docker registry. If not set then will default to Docker Hub
registry: ghcr.io

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Publish on GitHub Container Registry
run: make publish-multiarch

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Publish KEDA images on GitHub Container Registry
run: make publish-multiarch
env:
Expand Down
3 changes: 1 addition & 2 deletions tools/build-tools.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent soft
curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | apt-key add - 2>/dev/null && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" && \
apt-get update &&\
apt-get install -y docker-ce-cli && \
docker buildx create --use
apt-get install -y docker-ce-cli

# Install golang
RUN GO_VERSION=1.17.3 && \
Expand Down

0 comments on commit c81cb88

Please sign in to comment.