Skip to content

Commit

Permalink
add second build job to docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Mar 11, 2024
1 parent 9b32c5c commit 49ff7ab
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,49 @@ jobs:
file: "scripts/check-container.dockfile"
args: "cpu_target=avx"
tags: "ghcr.io/facebookincubator/velox-dev:check-avx"
- name: CircleCI
file: "scripts/circleci-container.dockfile"
- name: Centos 8
file: "scripts/centos.dockerfile"
args: "cpu_target=avx"
tags: "ghcr.io/facebookincubator/velox-dev:circleci-avx"
- name: Torcharrow
file: "scripts/velox-torcharrow-container.dockfile"
args: "cpu_target=avx"
tags: "ghcr.io/facebookincubator/velox-dev:torcharrow-avx"
tags: "ghcr.io/facebookincubator/velox-dev:centos8"
- name: Dev
file: "scripts/ubuntu-22.04-cpp.dockerfile"
args: ""
tags: "ghcr.io/facebookincubator/velox-dev:amd64-ubuntu-22.04-avx"

steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Build and Push
uses: docker/build-push-action@v3
with:
file: "${{ matrix.file }}"
build-args: "${{ matrix.args }}"
push: ${{ github.repository == 'facebookincubator/velox' && github.event_name != 'pull_request'}}
tags: "${{ matrix.tags }}"

linux-needs:
name: "Build and Push ${{ matrix.name }}"
needs: linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Centos 8
file: "scripts/adapters.dockerfile"
args: "cpu_target=avx"
tags: "ghcr.io/facebookincubator/velox-dev:adapters"
- name: Presto Java
file: "scripts/prestojava-container.dockerfile"
args: "PRESTO_VERSION=0.284"
Expand Down
3 changes: 1 addition & 2 deletions scripts/prestojava-container.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
# limitations under the License.
# Build the test and build container for presto_cpp
#
FROM quay.io/centos/centos:stream8
FROM ghcr.io/facebookincubator/velox-dev:centos8

ARG PRESTO_VERSION

ADD scripts /velox/scripts/
RUN /velox/scripts/setup-centos8.sh
RUN wget https://repo1.maven.org/maven2/com/facebook/presto/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
RUN wget https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar

Expand Down

0 comments on commit 49ff7ab

Please sign in to comment.