Skip to content

Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#478) #602

Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#478)

Bump docker/setup-buildx-action from 3.9.0 to 3.10.0 (#478) #602

name: Docker-based Testing Suite
on:
push:
branches:
- master
pull_request:
concurrency:
# For a given workflow, if we push to the same branch, cancel all previous builds on that branch except on master.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
permissions:
contents: read
jobs:
build:
name: Build and Test Docker image
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
auth.docker.io:443
conda.anaconda.org:443
files.pythonhosted.org:443
github.com:443
production.cloudflare.docker.com:443
pypi.org:443
registry-1.docker.io:443
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Build Docker image (no push)
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
with:
context: .
file: "Dockerfile"
tags: localfinch:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Run Docker image
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3.0.0
with:
image: localfinch:latest
options: -p 5000:5000
run: |
finch start -d
sleep 2s
finch status
finch stop